| 56 | } |
| 57 | |
| 58 | void 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 | |
| 66 | void IMU_Sensor::get_gyro(float &x, float &y, float &z) { |
| 67 | if (!available) return; |
nothing calls this directly
no outgoing calls
no test coverage detected