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

Method get_mag

src/custom_sensor/IMU_Sensor.cpp:74–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void IMU_Sensor::get_mag(float &x, float &y, float &z) {
75 if (!available) return;
76
77 x = (float) -magno_data.x;
78 y = (float) magno_data.z;
79 z = (float) magno_data.y;
80}
81
82int IMU_Sensor::get_sensor_count() {
83 return sensor_count;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected