FlightTaskManual: fixed stick vector index bug and enabled basic yaw setpoint control

This commit is contained in:
Matthias Grob
2018-04-05 07:30:12 +02:00
committed by Beat Küng
parent a00c3e4024
commit a896332746
2 changed files with 27 additions and 5 deletions
@@ -54,6 +54,8 @@ public:
bool initializeSubscriptions(SubscriptionArray &subscription_array) override;
bool activate() override;
bool applyCommandParameters(const vehicle_command_s &command) override { return FlightTask::applyCommandParameters(command); };
bool updateInitialize() override;
@@ -81,6 +83,9 @@ private:
control::BlockParamFloat _hold_max_z; /**< velocity threshold to switch into vertical position hold */
matrix::Vector3f _hold_position; /**< position at which the vehicle stays while the input is zero velocity */
float _hold_yaw; /**< absolute yaw which gets updated by the yawspeed input */
void _updateYaw();
bool _evaluate_sticks();