Skip to content

Commit 525cae4

Browse files
authored
Add MAVLink Telemetry debug mode (#4645)
1 parent 4755613 commit 525cae4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/js/debug.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,7 @@ function update() {
848848
addArrayElement(DEBUG.modes, "AUTOPILOT_POSITION");
849849
addArrayElement(DEBUG.modes, "CHIRP");
850850
addArrayElement(DEBUG.modes, "FLASH_TEST_PRBS");
851+
addArrayElement(DEBUG.modes, "MAVLINK_TELEMETRY");
851852
replaceArrayElement(DEBUG.modes, "DUAL_GYRO_RAW", "MULTI_GYRO_RAW");
852853
replaceArrayElement(DEBUG.modes, "DUAL_GYRO_DIFF", "MULTI_GYRO_DIFF");
853854
replaceArrayElement(DEBUG.modes, "DUAL_GYRO_SCALED", "MULTI_GYRO_SCALED");
@@ -919,6 +920,14 @@ function update() {
919920
"debug[7]": "pidA",
920921
};
921922

923+
DEBUG.fieldNames.MAVLINK_TELEMETRY = {
924+
"debug[all]": "MAVLink Telemetry",
925+
"debug[0]": "Telemetry state",
926+
"debug[1]": "Last known TX buffer free space",
927+
"debug[2]": "Estimated TX buffer free space",
928+
"debug[3]": "Ticks",
929+
};
930+
922931
addArrayElementAfter(DEBUG.enableFields, "Gyro", "Attitude");
923932
addArrayElement(DEBUG.enableFields, "Servo");
924933
}

0 commit comments

Comments
 (0)