Skip to content

Commit 497a46f

Browse files
committed
Added chirp parameters to header
1 parent 319e21b commit 497a46f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

js/flightlog_parser.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,14 @@ var FlightLogParser = function(logData) {
357357
tpa_low_breakpoint: null,
358358
tpa_low_always: null,
359359
mixer_type: null,
360+
chirp_lag_freq_hz: null,
361+
chirp_lead_freq_hz: null,
362+
chirp_amplitude_roll: null,
363+
chirp_amplitude_pitch: null,
364+
chirp_amplitude_yaw: null,
365+
chirp_frequency_start_deci_hz: null,
366+
chirp_frequency_end_deci_hz: null,
367+
chirp_time_seconds: null,
360368
unknownHeaders : [] // Unknown Extra Headers
361369
},
362370

@@ -443,6 +451,14 @@ var FlightLogParser = function(logData) {
443451
tpa_low_breakpoint : "tpa_low_breakpoint",
444452
tpa_low_always : "tpa_low_always",
445453
mixer_type : "mixer_type",
454+
chirp_lag_freq_hz : "chirp_lag_freq_hz",
455+
chirp_lead_freq_hz : "chirp_lead_freq_hz",
456+
chirp_amplitude_roll : "chirp_amplitude_roll",
457+
chirp_amplitude_pitch : "chirp_amplitude_pitch",
458+
chirp_amplitude_yaw : "chirp_amplitude_yaw",
459+
chirp_frequency_start_deci_hz : "chirp_frequency_start_deci_hz",
460+
chirp_frequency_end_deci_hz : "chirp_frequency_end_deci_hz",
461+
chirp_time_seconds : "chirp_time_seconds",
446462
},
447463

448464
frameTypes,
@@ -860,6 +876,14 @@ var FlightLogParser = function(logData) {
860876
case "tpa_low_breakpoint":
861877
case "tpa_low_always":
862878
case "mixer_type":
879+
case "chirp_lag_freq_hz":
880+
case "chirp_lead_freq_hz":
881+
case "chirp_amplitude_roll":
882+
case "chirp_amplitude_pitch":
883+
case "chirp_amplitude_yaw":
884+
case "chirp_frequency_start_deci_hz":
885+
case "chirp_frequency_end_deci_hz":
886+
case "chirp_time_seconds":
863887
case "dterm_lpf_dyn_hz":
864888
that.sysConfig[fieldName] = parseCommaSeparatedString(fieldValue);
865889
break;

0 commit comments

Comments
 (0)