mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Added gyro raw output debug mode
This commit is contained in:
parent
ee48272462
commit
ee1e008a80
3 changed files with 4 additions and 1 deletions
|
@ -575,6 +575,7 @@ void gyroUpdateSensor(gyroSensor_t *gyroSensor)
|
|||
#endif
|
||||
|
||||
for (int axis = 0; axis < XYZ_AXIS_COUNT; axis++) {
|
||||
DEBUG_SET(DEBUG_GYRO_RAW, axis, gyroSensor->gyroDev.gyroADCRaw[axis]);
|
||||
// scale gyro output to degrees per second
|
||||
float gyroADCf = (float)gyroSensor->gyroDev.gyroADC[axis] * gyroSensor->gyroDev.scale;
|
||||
// DEBUG_GYRO_NOTCH records the unfiltered gyro output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue