Given a record ID, read the resolution value from the metaData record in the FRS for a given sensor
| 1088 | |
| 1089 | //Given a record ID, read the resolution value from the metaData record in the FRS for a given sensor |
| 1090 | float 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 |
| 1105 | float BNO080::getRange(uint16_t recordID) |
nothing calls this directly
no outgoing calls
no test coverage detected