MCPcopy Create free account
hub / github.com/OpenEarable/open-earable / get_acc

Method get_acc

src/custom_sensor/IMU_Sensor.cpp:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58void IMU_Sensor::get_acc(float &x, float &y, float &z) {
59 if (!available) return;
60
61 x = (float) -accel_data.x;
62 y = (float) accel_data.z;
63 z = (float) accel_data.y;
64}
65
66void IMU_Sensor::get_gyro(float &x, float &y, float &z) {
67 if (!available) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected