FlightTask: rename and move setCruisingSpeed() -> overrideCruiseSpeed()

This commit is contained in:
Matthias Grob
2022-04-13 12:23:27 +03:00
committed by Roman Bapst
parent f892a624b7
commit 68cf686892
4 changed files with 10 additions and 11 deletions
@@ -167,6 +167,7 @@ public:
* This method does nothing, each flighttask which wants to use the yaw handler needs to override this method.
*/
virtual void setYawHandler(WeatherVane *ext_yaw_handler) {}
virtual void overrideCruiseSpeed(const float cruise_speed_m_s) {}
void updateVelocityControllerFeedback(const matrix::Vector3f &vel_sp,
const matrix::Vector3f &acc_sp)
@@ -175,8 +176,6 @@ 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)};