MCPcopy Create free account
hub / github.com/SlimeVR/SlimeVR-Tracker-ESP / getResolution

Method getResolution

lib/bno080/BNO080.cpp:1090–1102  ·  view source on GitHub ↗

Given a record ID, read the resolution value from the metaData record in the FRS for a given sensor

Source from the content-addressed store, hash-verified

1088
1089//Given a record ID, read the resolution value from the metaData record in the FRS for a given sensor
1090float BNO080::getResolution(uint16_t recordID)
1091{
1092 //The resolution Q value are 'the same as those used in the sensor's input report'
1093 //This should be Q1.
1094 int16_t Q = getQ1(recordID);
1095
1096 //Resolution is always word 2
1097 uint32_t value = readFRSword(recordID, 2); //Get word 2
1098
1099 float resolution = qToFloat(value, Q);
1100
1101 return (resolution);
1102}
1103
1104//Given a record ID, read the range value from the metaData record in the FRS for a given sensor
1105float BNO080::getRange(uint16_t recordID)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected