|
|
@ -190,17 +190,11 @@ const AP_Param::GroupInfo AP_MotorsMulticopter::var_info[] = { |
|
|
|
AP_MotorsMulticopter::AP_MotorsMulticopter(uint16_t loop_rate, uint16_t speed_hz) : |
|
|
|
AP_MotorsMulticopter::AP_MotorsMulticopter(uint16_t loop_rate, uint16_t speed_hz) : |
|
|
|
AP_Motors(loop_rate, speed_hz), |
|
|
|
AP_Motors(loop_rate, speed_hz), |
|
|
|
_spool_mode(SHUT_DOWN), |
|
|
|
_spool_mode(SHUT_DOWN), |
|
|
|
_spin_up_ratio(0.0f), |
|
|
|
|
|
|
|
_lift_max(1.0f), |
|
|
|
_lift_max(1.0f), |
|
|
|
_throttle_limit(1.0f), |
|
|
|
_throttle_limit(1.0f) |
|
|
|
_throttle_thrust_max(0.0f), |
|
|
|
|
|
|
|
_disarm_safety_timer(0) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
AP_Param::setup_object_defaults(this, var_info); |
|
|
|
AP_Param::setup_object_defaults(this, var_info); |
|
|
|
|
|
|
|
|
|
|
|
// disable all motors by default
|
|
|
|
|
|
|
|
memset(motor_enabled, false, sizeof(motor_enabled)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// setup battery voltage filtering
|
|
|
|
// setup battery voltage filtering
|
|
|
|
_batt_voltage_filt.set_cutoff_frequency(AP_MOTORS_BATT_VOLT_FILT_HZ); |
|
|
|
_batt_voltage_filt.set_cutoff_frequency(AP_MOTORS_BATT_VOLT_FILT_HZ); |
|
|
|
_batt_voltage_filt.reset(1.0f); |
|
|
|
_batt_voltage_filt.reset(1.0f); |
|
|
|