mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
we now use optional args to give ActuatorEffectivenessTiltrotorVTOL::updateSetpoint the necessary info about the preflight check. All the other ActuatorEffectiveness*::updateSetpoint functions can be used exactly like before, by ignoring the optional arguments. Rather than the previous solution of setting a member variable only when _actuator_effectiveness is an instance of ActuatorEffectivenessTiltrotorVTOL, this also allows us to lose the ugly dynamic_cast (poor cpp man's instanceof). the other dynamic_cast is replaced by checking _effectiveness_source_id which should be equivalent.