mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 04:43:34 +08:00
FlightTask: Weather vane cleanup
Remove the entire external yaw handler, dynamic memory allocation, pointer passing logic. Directly instanciate the weather vane instance in the flight tasks that support it.
This commit is contained in:
@@ -55,7 +55,6 @@
|
||||
#include <uORB/topics/vehicle_trajectory_waypoint.h>
|
||||
#include <uORB/topics/home_position.h>
|
||||
#include <lib/geo/geo.h>
|
||||
#include <lib/weather_vane/WeatherVane.hpp>
|
||||
|
||||
struct ekf_reset_counters_s {
|
||||
uint8_t xy;
|
||||
@@ -163,11 +162,6 @@ public:
|
||||
updateParams();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets an external yaw handler which can be used by any flight task to implement a different yaw control strategy.
|
||||
* 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,
|
||||
|
||||
Reference in New Issue
Block a user