mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
Copter: init multicopter flags
Resolves coverity warning Also fixed indentation
This commit is contained in:
parent
0645453997
commit
5032cf9fbc
@ -115,6 +115,10 @@ AP_MotorsMulticopter::AP_MotorsMulticopter(uint16_t loop_rate, uint16_t speed_hz
|
||||
// disable all motors by default
|
||||
memset(motor_enabled, false, sizeof(motor_enabled));
|
||||
|
||||
// init flags
|
||||
_multicopter_flags.slow_start = false;
|
||||
_multicopter_flags.slow_start_low_end = true;
|
||||
|
||||
// setup battery voltage filtering
|
||||
_batt_voltage_filt.set_cutoff_frequency(AP_MOTORS_BATT_VOLT_FILT_HZ);
|
||||
_batt_voltage_filt.reset(1.0f);
|
||||
|
Loading…
Reference in New Issue
Block a user