mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 09:31:38 +08:00
FlightTasks: adapt tasks to member setpoints
The FlightTaskManual... tasks already had their internal setpoint member variables. I switched them to use the architecture with setpoint member variables as it was implemented the commit before. They simplify a lot.
This commit is contained in:
@@ -63,15 +63,6 @@ protected:
|
||||
matrix::Vector3f _sticks_expo; /**< modified manual sticks using expo function*/
|
||||
control::BlockParamFloat _stick_dz; /**< 0-deadzone around the center for the sticks */
|
||||
|
||||
/* Setpoints: NAN means that setpoint is not being considered. */
|
||||
matrix::Vector3f _thr_sp{NAN, NAN, NAN}; /**< thrust setpoint */
|
||||
matrix::Vector3f _vel_sp{NAN, NAN, NAN}; /**< velocity setpoint */
|
||||
matrix::Vector3f _pos_sp{NAN, NAN, NAN}; /**< position setpoint */
|
||||
float _yaw_sp{NAN}; /**< yaw setpoint */
|
||||
float _yaw_rate_sp{NAN}; /**< yawspeed setpoint */
|
||||
|
||||
void _resetToNAN();
|
||||
|
||||
private:
|
||||
|
||||
uORB::Subscription<manual_control_setpoint_s> *_sub_manual_control_setpoint{nullptr};
|
||||
|
||||
Reference in New Issue
Block a user