Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions js/flightlog_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ var FlightLogParser = function(logData) {
blackbox_high_resolution:null, // Blackbox high resolution mode
thrMid:null, // Throttle Mid Position
thrExpo:null, // Throttle Expo
tpa_mode:null, // TPA Mode
tpa_breakpoint:null, // TPA Breakpoint
airmode_activate_throttle:null, // airmode activation level
serialrx_provider:null, // name of the serial rx provider
Expand Down Expand Up @@ -610,7 +611,8 @@ var FlightLogParser = function(logData) {
case "rcRate":
case "thrMid":
case "thrExpo":
case "dynThrPID":
case "tpa_rate":
case "tpa_mode":
case "tpa_breakpoint":
case "airmode_activate_throttle":
case "serialrx_provider":
Expand Down Expand Up @@ -987,9 +989,11 @@ var FlightLogParser = function(logData) {
console.log("Saw unsupported field header \"" + fieldName + "\"");
}
} else {
console.log("Ignoring unsupported header \"" + fieldName + "\"");
if(that.sysConfig.unknownHeaders==null) that.sysConfig.unknownHeaders = new Array();
that.sysConfig.unknownHeaders.push({ name: fieldName, value: fieldValue });// Save the unknown headers
console.log(`Ignoring unsupported header ${fieldName} ${fieldValue}`);
if (that.sysConfig.unknownHeaders === null) {
that.sysConfig.unknownHeaders = new Array();
}
that.sysConfig.unknownHeaders.push({ name: fieldName, value: fieldValue }); // Save the unknown headers
}
break;
}
Expand Down