FlightTaskAutoMapper: clean-up and fix comments

This commit is contained in:
Martina
2018-08-02 09:23:17 +02:00
committed by ChristophTobler
parent d85481be6d
commit 3f2f399b91
2 changed files with 6 additions and 6 deletions
@@ -32,7 +32,7 @@
****************************************************************************/ ****************************************************************************/
/** /**
* @file FlightAutoLine.cpp * @file FlightAutoMapper.cpp
*/ */
#include "FlightTaskAutoMapper.hpp" #include "FlightTaskAutoMapper.hpp"
@@ -108,7 +108,7 @@ void FlightTaskAutoMapper::_reset()
void FlightTaskAutoMapper::_generateIdleSetpoints() void FlightTaskAutoMapper::_generateIdleSetpoints()
{ {
// Send zero thrust setpoint */ // Send zero thrust setpoint
_position_setpoint = Vector3f(NAN, NAN, NAN); // Don't require any position/velocity setpoints _position_setpoint = Vector3f(NAN, NAN, NAN); // Don't require any position/velocity setpoints
_velocity_setpoint = Vector3f(NAN, NAN, NAN); _velocity_setpoint = Vector3f(NAN, NAN, NAN);
_thrust_setpoint.zero(); _thrust_setpoint.zero();
@@ -116,7 +116,7 @@ void FlightTaskAutoMapper::_generateIdleSetpoints()
void FlightTaskAutoMapper::_generateLandSetpoints() void FlightTaskAutoMapper::_generateLandSetpoints()
{ {
// Keep xy-position and go down with landspeed. */ // Keep xy-position and go down with landspeed
_position_setpoint = Vector3f(_target(0), _target(1), NAN); _position_setpoint = Vector3f(_target(0), _target(1), NAN);
_velocity_setpoint = Vector3f(Vector3f(NAN, NAN, MPC_LAND_SPEED.get())); _velocity_setpoint = Vector3f(Vector3f(NAN, NAN, MPC_LAND_SPEED.get()));
// set constraints // set constraints
@@ -127,7 +127,7 @@ void FlightTaskAutoMapper::_generateLandSetpoints()
void FlightTaskAutoMapper::_generateTakeoffSetpoints() void FlightTaskAutoMapper::_generateTakeoffSetpoints()
{ {
// Takeoff is completely defined by target position. */ // Takeoff is completely defined by target position
_position_setpoint = _target; _position_setpoint = _target;
_velocity_setpoint = Vector3f(NAN, NAN, NAN); _velocity_setpoint = Vector3f(NAN, NAN, NAN);
@@ -34,8 +34,8 @@
/** /**
* @file FlightTaskAutoMapper.hpp * @file FlightTaskAutoMapper.hpp
* *
* Flight task for autonomous, gps driven mode. The vehicle flies * Abstract Flight task which generates local setpoints
* along a straight line in between waypoints. * based on the triplet type.
*/ */
#pragma once #pragma once