Skip to content
Snippets Groups Projects
Commit 5d064643 authored by Dennis Mannhart's avatar Dennis Mannhart Committed by Beat Küng
Browse files

FlightTaskManualPosition: rename updateXYsetpoints to updateXYlock

parent efc2721a
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,7 @@ void FlightTaskManualPosition::_scaleSticks()
_vel_sp_xy = matrix::Vector2f(vel_sp(0), vel_sp(1));
}
void FlightTaskManualPosition::_updateXYsetpoints()
void FlightTaskManualPosition::_updateXYlock()
{
/* If position lock is not active, position setpoint is set to NAN.*/
const float vel_xy_norm = Vector2f(&_velocity(0)).length();
......@@ -98,7 +98,7 @@ void FlightTaskManualPosition::_updateXYsetpoints()
void FlightTaskManualPosition::_updateSetpoints()
{
FlightTaskManualAltitude::_updateSetpoints(); // get yaw and z setpoints
_updateXYsetpoints(); // get xy setpoints
_updateXYlock(); // check for position lock
}
bool FlightTaskManualPosition::update()
......
......@@ -61,9 +61,7 @@ protected:
control::BlockParamFloat _acc_xy_max;/**< Maximum acceleration horizontally. Only used to compute lock time. */
control::BlockParamFloat _vel_xy_dz; /**< velocity threshold/deadzone to switch into horizontal position hold */
void _updateXYlock(); /**< Applies positon lock based on stick and velocity */
void _updateSetpoints() override;
void _scaleSticks() override;
private:
void _updateXYsetpoints();
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment