From f5cbfb609a8f8054beac45c20c0debdfce8ba917 Mon Sep 17 00:00:00 2001 From: pichim Date: Wed, 4 Oct 2023 14:38:26 +0200 Subject: [PATCH] Added llc parameters to header --- js/flightlog_parser.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/js/flightlog_parser.js b/js/flightlog_parser.js index 7d4a92f0..1dfcc628 100644 --- a/js/flightlog_parser.js +++ b/js/flightlog_parser.js @@ -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 }, @@ -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, @@ -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;