1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-24 00:35:34 +03:00

add raw accelerometer debug_mode

This commit is contained in:
giacomo892 2018-11-29 15:03:22 +01:00
parent e8a4016134
commit 80e7094457
3 changed files with 3 additions and 1 deletions

View file

@ -67,6 +67,7 @@ typedef enum {
DEBUG_CRUISE,
DEBUG_REM_FLIGHT_TIME,
DEBUG_SMARTAUDIO,
DEBUG_ACC,
DEBUG_COUNT
} debugType_e;

View file

@ -72,7 +72,7 @@ tables:
- name: debug_modes
values: ["NONE", "GYRO", "NOTCH", "NAV_LANDING", "FW_ALTITUDE", "AGL", "FLOW_RAW",
"FLOW", "SBUS", "FPORT", "ALWAYS", "STAGE2", "WIND_ESTIMATOR", "SAG_COMP_VOLTAGE",
"VIBE", "CRUISE", "REM_FLIGHT_TIME", "SMARTAUDIO"]
"VIBE", "CRUISE", "REM_FLIGHT_TIME", "SMARTAUDIO","ACC"]
- name: async_mode
values: ["NONE", "GYRO", "ALL"]
- name: aux_operator

View file

@ -513,6 +513,7 @@ void accUpdate(void)
for (int axis = 0; axis < XYZ_AXIS_COUNT; axis++) {
accADC[axis] = acc.dev.ADCRaw[axis];
DEBUG_SET(DEBUG_ACC, axis, accADC[axis]);
}
if (!accIsCalibrationComplete()) {