Skip to content

Commit 5166d49

Browse files
authored
Added chirp parameters to header (#658)
Adjustments due to file location change
1 parent e4f043e commit 5166d49

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/flightlog_parser.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,14 @@ export function FlightLogParser(logData) {
345345
tpa_low_breakpoint: null,
346346
tpa_low_always: null,
347347
mixer_type: null,
348+
chirp_lag_freq_hz: null,
349+
chirp_lead_freq_hz: null,
350+
chirp_amplitude_roll: null,
351+
chirp_amplitude_pitch: null,
352+
chirp_amplitude_yaw: null,
353+
chirp_frequency_start_deci_hz: null,
354+
chirp_frequency_end_deci_hz: null,
355+
chirp_time_seconds: null,
348356
unknownHeaders: [], // Unknown Extra Headers
349357
},
350358
// Translation of the field values name to the sysConfig var where it must be stored
@@ -430,6 +438,14 @@ export function FlightLogParser(logData) {
430438
tpa_low_breakpoint: "tpa_low_breakpoint",
431439
tpa_low_always: "tpa_low_always",
432440
mixer_type: "mixer_type",
441+
chirp_lag_freq_hz : "chirp_lag_freq_hz",
442+
chirp_lead_freq_hz : "chirp_lead_freq_hz",
443+
chirp_amplitude_roll : "chirp_amplitude_roll",
444+
chirp_amplitude_pitch : "chirp_amplitude_pitch",
445+
chirp_amplitude_yaw : "chirp_amplitude_yaw",
446+
chirp_frequency_start_deci_hz : "chirp_frequency_start_deci_hz",
447+
chirp_frequency_end_deci_hz : "chirp_frequency_end_deci_hz",
448+
chirp_time_seconds : "chirp_time_seconds",
433449
},
434450
frameTypes,
435451
// Blackbox state:
@@ -864,6 +880,14 @@ export function FlightLogParser(logData) {
864880
case "tpa_low_breakpoint":
865881
case "tpa_low_always":
866882
case "mixer_type":
883+
case "chirp_lag_freq_hz":
884+
case "chirp_lead_freq_hz":
885+
case "chirp_amplitude_roll":
886+
case "chirp_amplitude_pitch":
887+
case "chirp_amplitude_yaw":
888+
case "chirp_frequency_start_deci_hz":
889+
case "chirp_frequency_end_deci_hz":
890+
case "chirp_time_seconds":
867891
case "dterm_lpf_dyn_hz":
868892
that.sysConfig[fieldName] = parseCommaSeparatedString(fieldValue);
869893
break;

0 commit comments

Comments
 (0)