User manual
DocumentMT0100P.N
©XsensTechnologiesB.V. MTiandMTxUserManualandTechnicalDocumentation
19
4.5.3 Un‐calibratedrawoutputmode
In un‐calibrated raw output format the “raw” readings from the 16‐bit AD‐convertersin the MTi / MTx are
outputted. This means the physical calibration model described in the previous section is not applied. This
gives you open access to the basic level of the sensor unit, but in most cases this level of use is not
recommended.However,ifyourmainpurposeisforloggingandpost‐processing,itmaybeadvantageousasit
is always possible to go back to the “source” of the signal. In this mode the device temperature is also
outputted(housingambientonly).
NOTE:Thedatafieldsare2bytes(16bits)asopposedtothe3bytefloatsfortheotheroutputmodes.
Temperatureoutputformat
The2 bytetemperaturedatafieldintheun‐calibratedrawoutputmodeoftheMTi/MTxcanbeinterpreted
asa16bits,2‐complementnumber.However,pleasenotethattheresolutionofthetemperaturesensorisnot
actually16‐bitbut12‐bit.
Forexampleyoucaninterpretthe2‐bytetemperatureasfollows:
00.00hex=0.0°C
00.80hex=+0.5°C
FF.80hex=‐0.5°C
19.10hex=+25.0625°C
E6.F0hex=‐25.0625°C
Thetemperature‐fieldisa16‐bittwo‐complementnumberofwhich thelastbyterepresentsthevaluebehind
thecomma.Tocalculatethetemperaturevalueusetheformula:
T=(–2
16
+x)/256 ifx≥2
15
or T=x/256 ifx<2
15
,wherexisthe16‐bitvalueoftheTempfield.
Forexample,thevalue59120(0xE6F0)correspondswithatemperatureof‐25.0625°C.
4.6 Resetofoutputorreferenceco‐ordinatesystems
4.6.1 Outputwithrespecttonon‐defaultcoordinateframes
InsomesituationsitmayoccurthattheMTsensoraxesarenotexactlyalignedwiththeaxesoftheobjectof
whichtheorientationhastoberecorded.Itmaybedesiredtooutputtheorientationand/orcalibratedinertial
data in an object‐fixed frame, as opposed to a sensor‐fixed frame. Four methods have been added to the
softwaretofacilitateinobtainingtheoutputinthedesiredcoordinateframes,theyarediscussedbelow.
1. SettinganarbitraryrotationmatrixtorotateStothechosenobjectcoordinatesystemO.
Theoutputdefinitioninun‐calibratedRAWinertialdataoutputmodeis:
MTData DATA =
MID50(0x32)
EachdataelementinDATAfieldis2bytes(16bit)unsignedintegers.
Seebelowforreadingthetemperaturedata
tempmagZmagYmagXgyrZgyrYgyrXaccZaccYaccX