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 Oct 4, 2023
1 parent 111b099 commit f5cbfb6
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 @@ -350,6 +350,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 @@ -431,6 +437,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 @@ -841,6 +853,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 f5cbfb6

Please sign in to comment.