Copter: fixed HAL_MINIMIZE_FEATURES build

This commit is contained in:
Andrew Tridgell 2019-06-06 10:21:41 +10:00
parent bfdf857b34
commit 01a0d3897e
1 changed files with 2 additions and 0 deletions

View File

@ -161,7 +161,9 @@ void Copter::heli_update_rotor_speed_targets()
// of whether or not they actually use it
// set rpm from rotor speed sensor
if (motors->get_interlock()) {
#if RPM_ENABLED == ENABLED
motors->set_rpm(rpm_sensor.get_rpm(0));
#endif
motors->set_desired_rotor_speed(motors->get_rsc_setpoint());
}else{
motors->set_desired_rotor_speed(0.0f);