Skip to content

Commit

Permalink
Added llc parameters to header
Browse files Browse the repository at this point in the history
  • Loading branch information
pichim committed Dec 1, 2023
1 parent 5ce6146 commit 87075bb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions js/flightlog_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,12 @@ var FlightLogParser = function(logData) {
throttle_limit_percent: null,
throttle_boost: null, // throttle boost
throttle_boost_cutoff: null,
gyro_llc_freq_hz: null,
gyro_llc_phase: null,
dterm_llc_freq_hz: null,
dterm_llc_phase: null,
pterm_llc_freq_hz: null,
pterm_llc_phase: null,
unknownHeaders : [] // Unknown Extra Headers
},

Expand Down Expand Up @@ -433,6 +439,12 @@ var FlightLogParser = function(logData) {
vbat_pid_gain : "vbat_pid_compensation",
yaw_accel_limit : "yawRateAccelLimit",
yaw_lowpass_hz : "yaw_lpf_hz",
gyro_llc_freq_hz : "gyro_llc_freq_hz",
gyro_llc_phase : "gyro_llc_phase",
dterm_llc_freq_hz : "dterm_llc_freq_hz",
dterm_llc_phase : "dterm_llc_phase",
pterm_llc_freq_hz : "pterm_llc_freq_hz",
pterm_llc_phase : "pterm_llc_phase",
},

frameTypes,
Expand Down Expand Up @@ -845,6 +857,12 @@ var FlightLogParser = function(logData) {
case "gyro_lowpass_dyn_hz":
case "gyro_lowpass_dyn_expo":
case "dterm_lpf_dyn_expo":
case "gyro_llc_freq_hz":
case "gyro_llc_phase":
case "dterm_llc_freq_hz":
case "dterm_llc_phase":
case "pterm_llc_freq_hz":
case "pterm_llc_phase":
case "dterm_lpf_dyn_hz":
that.sysConfig[fieldName] = parseCommaSeparatedString(fieldValue);
break;
Expand Down

0 comments on commit 87075bb

Please sign in to comment.