mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 00:53:34 +08:00
FlightTask: rename and move setCruisingSpeed() -> overrideCruiseSpeed()
This commit is contained in:
committed by
Roman Bapst
parent
f892a624b7
commit
68cf686892
@@ -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)};
|
||||
|
||||
Reference in New Issue
Block a user