AP_Motors: bug fix to _batt_voltage_filt

This commit is contained in:
Jonathan Challinger 2015-03-31 18:36:08 -07:00 committed by Randy Mackay
parent 89cdd02f58
commit 1828515b3b

View File

@ -125,7 +125,7 @@ AP_Motors::AP_Motors(RC_Channel& rc_roll, RC_Channel& rc_pitch, RC_Channel& rc_t
_flags.slow_start_low_end = true;
// setup battery voltage filtering
_batt_voltage_filt.set_cutoff_frequency(_loop_rate,AP_MOTORS_BATT_VOLT_FILT_HZ);
_batt_voltage_filt.set_cutoff_frequency(1.0f/_loop_rate,AP_MOTORS_BATT_VOLT_FILT_HZ);
_batt_voltage_filt.reset(1.0f);
};