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:
parent
e8a4016134
commit
80e7094457
3 changed files with 3 additions and 1 deletions
|
@ -67,6 +67,7 @@ typedef enum {
|
||||||
DEBUG_CRUISE,
|
DEBUG_CRUISE,
|
||||||
DEBUG_REM_FLIGHT_TIME,
|
DEBUG_REM_FLIGHT_TIME,
|
||||||
DEBUG_SMARTAUDIO,
|
DEBUG_SMARTAUDIO,
|
||||||
|
DEBUG_ACC,
|
||||||
DEBUG_COUNT
|
DEBUG_COUNT
|
||||||
} debugType_e;
|
} debugType_e;
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ tables:
|
||||||
- name: debug_modes
|
- name: debug_modes
|
||||||
values: ["NONE", "GYRO", "NOTCH", "NAV_LANDING", "FW_ALTITUDE", "AGL", "FLOW_RAW",
|
values: ["NONE", "GYRO", "NOTCH", "NAV_LANDING", "FW_ALTITUDE", "AGL", "FLOW_RAW",
|
||||||
"FLOW", "SBUS", "FPORT", "ALWAYS", "STAGE2", "WIND_ESTIMATOR", "SAG_COMP_VOLTAGE",
|
"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
|
- name: async_mode
|
||||||
values: ["NONE", "GYRO", "ALL"]
|
values: ["NONE", "GYRO", "ALL"]
|
||||||
- name: aux_operator
|
- name: aux_operator
|
||||||
|
|
|
@ -513,6 +513,7 @@ void accUpdate(void)
|
||||||
|
|
||||||
for (int axis = 0; axis < XYZ_AXIS_COUNT; axis++) {
|
for (int axis = 0; axis < XYZ_AXIS_COUNT; axis++) {
|
||||||
accADC[axis] = acc.dev.ADCRaw[axis];
|
accADC[axis] = acc.dev.ADCRaw[axis];
|
||||||
|
DEBUG_SET(DEBUG_ACC, axis, accADC[axis]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!accIsCalibrationComplete()) {
|
if (!accIsCalibrationComplete()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue