User manual


DocumentMT0100P.N
©XsensTechnologiesB.V. MTiandMTxUserManualandTechnicalDocumentation
19
4.5.3 Uncalibratedrawoutputmode
In uncalibrated raw output format the “raw” readings from the 16bit ADconvertersin 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,ifyourmainpurposeisforloggingandpostprocessing,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 bytetemperaturedatafieldintheuncalibratedrawoutputmodeoftheMTi/MTxcanbeinterpreted
asa16bits,2complementnumber.However,pleasenotethattheresolutionofthetemperaturesensorisnot
actually16bitbut12bit.
Forexampleyoucaninterpretthe2bytetemperatureasfollows:
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
Thetemperaturefieldisa16bittwocomplementnumberofwhich thelastbyterepresentsthevaluebehind
thecomma.Tocalculatethetemperaturevalueusetheformula:
T=(–2
16
+x)/256 ifx≥2
15

or T=x/256 ifx<2
15
,wherexisthe16bitvalueoftheTempfield.
Forexample,thevalue59120(0xE6F0)correspondswithatemperatureof‐25.0625°C.
4.6 Resetofoutputorreferencecoordinatesystems
4.6.1 Outputwithrespecttonondefaultcoordinateframes
InsomesituationsitmayoccurthattheMTsensoraxesarenotexactlyalignedwiththeaxesoftheobjectof
whichtheorientationhastoberecorded.Itmaybedesiredtooutputtheorientationand/orcalibratedinertial
data in an objectfixed frame, as opposed to a sensorfixed frame. Four methods have been added to the
softwaretofacilitateinobtainingtheoutputinthedesiredcoordinateframes,theyarediscussedbelow.
1. SettinganarbitraryrotationmatrixtorotateStothechosenobjectcoordinatesystemO.
TheoutputdefinitioninuncalibratedRAWinertialdataoutputmodeis:
MTData DATA = 
MID50(0x32)
EachdataelementinDATAfieldis2bytes(16bit)unsignedintegers.
Seebelowforreadingthetemperaturedata
tempmagZmagYmagXgyrZgyrYgyrXaccZaccYaccX