FlightModeManager: handle MAV_CMD_DO_CHANGE_SPEED

- support setting the cruise speed of the auto flight task via command

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst
2022-04-13 12:23:27 +03:00
committed by Roman Bapst
parent ca657f36ef
commit d41de33a85
4 changed files with 26 additions and 3 deletions
@@ -175,6 +175,8 @@ public:
_acceleration_setpoint_feedback = acc_sp;
}
virtual bool setCruisingSpeed(const float cruising_speed_m_s) { return false; }
protected:
uORB::SubscriptionData<vehicle_local_position_s> _sub_vehicle_local_position{ORB_ID(vehicle_local_position)};
uORB::SubscriptionData<home_position_s> _sub_home_position{ORB_ID(home_position)};