MCPcopy Create free account
hub / github.com/derekmolloy/exploringBB / readSensorState

Method readSensorState

library/sensor/ADXL345.cpp:149–162  ·  view source on GitHub ↗

* Read the sensor state. This method checks that the device is being correctly * read by using the device ID of the ADXL345 sensor. It will read in the accelerometer registers * and pass them to the combineRegisters() method to be processed. * @return 0 if the registers are successfully read and -1 if the device ID is incorrect. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

displayPitchAndRollMethod · 0.95

Calls 3

combineRegistersMethod · 0.95
calculatePitchAndRollMethod · 0.95
readRegistersMethod · 0.45

Tested by

no test coverage detected