@@ -284,9 +284,9 @@ export function FlightLogParser(logData) {
284284 pidSumLimit : null , // PID sum limit
285285 pidSumLimitYaw : null , // PID sum limit yaw
286286 use_integrated_yaw : null , // Use integrated yaw
287- d_min : [ null , null , null ] , // D_Min [P, I, D ]
288- d_min_gain : null , // D_Min gain - D_Max in 4.3
289- d_min_advance : null , // D_Min advance - D_Max in 4.3
287+ d_max : [ null , null , null ] , // D_MAX [ROLL, PITCH, YAW ]
288+ d_max_gain : null , // D_MAX gain
289+ d_max_advance : null , // D_MAX advance
290290 iterm_relax : null , // ITerm Relax mode
291291 iterm_relax_type : null , // ITerm Relax type
292292 iterm_relax_cutoff : null , // ITerm Relax cutoff
@@ -326,7 +326,7 @@ export function FlightLogParser(logData) {
326326 simplified_pi_gain : null ,
327327 simplified_i_gain : null ,
328328 simplified_d_gain : null ,
329- simplified_dmax_gain : null ,
329+ simplified_d_max_gain : null ,
330330 simplified_feedforward_gain : null ,
331331 simplified_pitch_d_gain : null ,
332332 simplified_pitch_pi_gain : null ,
@@ -370,8 +370,8 @@ export function FlightLogParser(logData) {
370370 dterm_lpf2_static_hz : "dterm_lpf2_hz" ,
371371 dterm_setpoint_weight : "dtermSetpointWeight" ,
372372 digital_idle_value : "digitalIdleOffset" ,
373- d_max_gain : "d_min_gain " ,
374- d_max_advance : "d_min_advance " ,
373+ simplified_dmax_gain : "simplified_d_max_gain " ,
374+ d_max : "d_min " ,
375375 dshot_idle_value : "digitalIdleOffset" ,
376376 dyn_idle_min_rpm : "dynamic_idle_min_rpm" ,
377377 feedforward_transition : "ff_transition" ,
@@ -696,8 +696,8 @@ export function FlightLogParser(logData) {
696696 case "anti_gravity_cutoff_hz" :
697697 case "abs_control_gain" :
698698 case "use_integrated_yaw" :
699- case "d_min_gain " :
700- case "d_min_advance " :
699+ case "d_max_gain " :
700+ case "d_max_advance " :
701701 case "dshot_bidir" :
702702 case "gyro_rpm_notch_harmonics" :
703703 case "gyro_rpm_notch_q" :
@@ -732,6 +732,7 @@ export function FlightLogParser(logData) {
732732 case "simplified_i_gain" :
733733 case "simplified_d_gain" :
734734 case "simplified_dmax_gain" :
735+ case "simplified_d_max_gain" :
735736 case "simplified_feedforward_gain" :
736737 case "simplified_pitch_d_gain" :
737738 case "simplified_pitch_pi_gain" :
@@ -869,11 +870,12 @@ export function FlightLogParser(logData) {
869870 that . sysConfig . magPID = parseCommaSeparatedString ( fieldValue , 3 ) ; //[parseInt(fieldValue, 10), null, null];
870871 break ;
871872 case "d_min" :
872- // Add Dmin values as Derivative numbers to PID array
873- var dMinValues = parseCommaSeparatedString ( fieldValue ) ;
874- that . sysConfig [ "rollPID" ] . push ( dMinValues [ 0 ] ) ;
875- that . sysConfig [ "pitchPID" ] . push ( dMinValues [ 1 ] ) ;
876- that . sysConfig [ "yawPID" ] . push ( dMinValues [ 2 ] ) ;
873+ case "d_max" :
874+ // Add D MAX values as Derivative numbers to PID array
875+ var dMaxValues = parseCommaSeparatedString ( fieldValue ) ;
876+ that . sysConfig [ "rollPID" ] . push ( dMaxValues [ 0 ] ) ;
877+ that . sysConfig [ "pitchPID" ] . push ( dMaxValues [ 1 ] ) ;
878+ that . sysConfig [ "yawPID" ] . push ( dMaxValues [ 2 ] ) ;
877879 break ;
878880 case "ff_weight" :
879881 // Add feedforward values to the PID array
0 commit comments