Skip to content

Commit 6918dfe

Browse files
committed
Add debug names for Betaflight 4.1
1 parent ccf3e35 commit 6918dfe

File tree

2 files changed

+81
-1
lines changed

2 files changed

+81
-1
lines changed

js/flightlog_fielddefs.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,16 @@ var
305305
"D_MIN",
306306
"AC_CORRECTION",
307307
"AC_ERROR",
308+
"DUAL_GYRO_SCALED",
309+
"DSHOT_RPM_ERRORS",
310+
"CRSF_LINK_STATISTICS_UPLINK",
311+
"CRSF_LINK_STATISTICS_PWR",
312+
"CRSF_LINK_STATISTICS_DOWN",
313+
"BARO",
314+
"GPS_RESCUE_THROTTLE_PID",
315+
"DYN_IDLE",
316+
"FF_LIMIT",
317+
"FF_INTERPOLATED",
308318
]),
309319

310320
SUPER_EXPO_YAW = makeReadOnly([
@@ -409,7 +419,7 @@ function adjustFieldDefsList(firmwareType, firmwareVersion) {
409419
DEBUG_MODE.splice(DEBUG_MODE.indexOf('NOTCH'), 1, 'GYRO_SCALED');
410420
}
411421
if(semver.gte(firmwareVersion, '4.0.0')) {
412-
DEBUG_MODE.splice(DEBUG_MODE.indexOf('RX_FRSKY_SPI'), 0, 'GYRO_RAW');
422+
DEBUG_MODE.splice(DEBUG_MODE.indexOf('GYRO_RAW'), 0, 'RX_SFHSS_SPI');
413423
}
414424
if(semver.gte(firmwareVersion, '4.1.0')) {
415425
DEBUG_MODE.splice(DEBUG_MODE.indexOf('DUAL_GYRO'), 1);

js/flightlog_fields_presenter.js

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,76 @@ function FlightLogFieldPresenter() {
336336
'debug[2]':'AC Error [yaw]',
337337
'debug[3]':'Not Used',
338338
},
339+
'DUAL_GYRO_SCALED' : {
340+
'debug[all]':'Dual Gyro Scaled',
341+
'debug[0]':'Gyro 1 [roll]',
342+
'debug[1]':'Gyro 1 [pitch]',
343+
'debug[2]':'Gyro 2 [roll]',
344+
'debug[3]':'Gyro 2 [pitch]',
345+
},
346+
'DSHOT_RPM_ERRORS' : {
347+
'debug[all]':'DSHOT RPM Error',
348+
'debug[0]':'DSHOT RPM Error [1]',
349+
'debug[1]':'DSHOT RPM Error [2]',
350+
'debug[2]':'DSHOT RPM Error [3]',
351+
'debug[3]':'DSHOT RPM Error [4]',
352+
},
353+
'CRSF_LINK_STATISTICS_UPLINK' : {
354+
'debug[all]':'CRSF Stats Uplink',
355+
'debug[0]':'Uplink RSSI 1',
356+
'debug[1]':'Uplink RSSI 2',
357+
'debug[2]':'Uplink Link Quality',
358+
'debug[3]':'RF Mode',
359+
},
360+
'CRSF_LINK_STATISTICS_PWR' : {
361+
'debug[all]':'CRSF Stats Power',
362+
'debug[0]':'Antenna',
363+
'debug[1]':'SNR',
364+
'debug[2]':'TX Power',
365+
'debug[3]':'Not Used',
366+
},
367+
'CRSF_LINK_STATISTICS_DOWN' : {
368+
'debug[all]':'CRSF Stats Downlink',
369+
'debug[0]':'Downlink RSSI',
370+
'debug[1]':'Downlink Link Quality',
371+
'debug[2]':'Downlink SNR',
372+
'debug[3]':'Not Used',
373+
},
374+
'BARO' : {
375+
'debug[all]':'Debug Barometer',
376+
'debug[0]':'Baro State',
377+
'debug[1]':'Baro Temperature',
378+
'debug[2]':'Baro Pressure',
379+
'debug[3]':'Baro Pressure Sum',
380+
},
381+
'GPS_RESCUE_THROTTLE_PID' : {
382+
'debug[all]':'GPS Rescue Throttle PID',
383+
'debug[0]':'Throttle P',
384+
'debug[1]':'Throttle I',
385+
'debug[2]':'Throttle D',
386+
'debug[3]':'Z Velocity',
387+
},
388+
'DYN_IDLE' : {
389+
'debug[all]':'Dyn Idle',
390+
'debug[0]':'Motor Range Min Inc',
391+
'debug[1]':'Target RPS Change Rate',
392+
'debug[2]':'Error',
393+
'debug[3]':'Min RPS',
394+
},
395+
'FF_LIMIT' : {
396+
'debug[all]':'FF Limit',
397+
'debug[0]':'FF [Roll]',
398+
'debug[1]':'FF [Pitch]',
399+
'debug[2]':'FF Final [Roll]',
400+
'debug[3]':'Not Used',
401+
},
402+
'FF_INTERPOLATED' : {
403+
'debug[all]':'FF Interpolated',
404+
'debug[0]':'Setpoint Delta Impl [Roll]',
405+
'debug[1]':'Boost Amount',
406+
'debug[2]':'Boost Amount Clip [Roll]',
407+
'debug[3]':'Clip',
408+
},
339409
};
340410

341411
function presentFlags(flags, flagNames) {

0 commit comments

Comments
 (0)