Skip to content

Commit 81a7250

Browse files
authored
Add FAILSAFE and GYRO_CALIBRATION debug modes (#626)
1 parent a562b56 commit 81a7250

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

js/flightlog_parser.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ var FlightLogParser = function(logData) {
207207
blackbox_high_resolution:null, // Blackbox high resolution mode
208208
thrMid:null, // Throttle Mid Position
209209
thrExpo:null, // Throttle Expo
210+
tpa_mode:null, // TPA Mode
210211
tpa_breakpoint:null, // TPA Breakpoint
211212
airmode_activate_throttle:null, // airmode activation level
212213
serialrx_provider:null, // name of the serial rx provider
@@ -610,7 +611,8 @@ var FlightLogParser = function(logData) {
610611
case "rcRate":
611612
case "thrMid":
612613
case "thrExpo":
613-
case "dynThrPID":
614+
case "tpa_rate":
615+
case "tpa_mode":
614616
case "tpa_breakpoint":
615617
case "airmode_activate_throttle":
616618
case "serialrx_provider":
@@ -987,9 +989,11 @@ var FlightLogParser = function(logData) {
987989
console.log("Saw unsupported field header \"" + fieldName + "\"");
988990
}
989991
} else {
990-
console.log("Ignoring unsupported header \"" + fieldName + "\"");
991-
if(that.sysConfig.unknownHeaders==null) that.sysConfig.unknownHeaders = new Array();
992-
that.sysConfig.unknownHeaders.push({ name: fieldName, value: fieldValue });// Save the unknown headers
992+
console.log(`Ignoring unsupported header ${fieldName} ${fieldValue}`);
993+
if (that.sysConfig.unknownHeaders === null) {
994+
that.sysConfig.unknownHeaders = new Array();
995+
}
996+
that.sysConfig.unknownHeaders.push({ name: fieldName, value: fieldValue }); // Save the unknown headers
993997
}
994998
break;
995999
}

0 commit comments

Comments
 (0)