mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
FlightTaskAutoMapper: clean-up and fix comments
This commit is contained in:
parent
d85481be6d
commit
3f2f399b91
@ -32,7 +32,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
/**
|
||||
* @file FlightAutoLine.cpp
|
||||
* @file FlightAutoMapper.cpp
|
||||
*/
|
||||
|
||||
#include "FlightTaskAutoMapper.hpp"
|
||||
@ -108,7 +108,7 @@ void FlightTaskAutoMapper::_reset()
|
||||
|
||||
void FlightTaskAutoMapper::_generateIdleSetpoints()
|
||||
{
|
||||
// Send zero thrust setpoint */
|
||||
// Send zero thrust setpoint
|
||||
_position_setpoint = Vector3f(NAN, NAN, NAN); // Don't require any position/velocity setpoints
|
||||
_velocity_setpoint = Vector3f(NAN, NAN, NAN);
|
||||
_thrust_setpoint.zero();
|
||||
@ -116,7 +116,7 @@ void FlightTaskAutoMapper::_generateIdleSetpoints()
|
||||
|
||||
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);
|
||||
_velocity_setpoint = Vector3f(Vector3f(NAN, NAN, MPC_LAND_SPEED.get()));
|
||||
// set constraints
|
||||
@ -127,7 +127,7 @@ void FlightTaskAutoMapper::_generateLandSetpoints()
|
||||
|
||||
void FlightTaskAutoMapper::_generateTakeoffSetpoints()
|
||||
{
|
||||
// Takeoff is completely defined by target position. */
|
||||
// Takeoff is completely defined by target position
|
||||
_position_setpoint = _target;
|
||||
_velocity_setpoint = Vector3f(NAN, NAN, NAN);
|
||||
|
||||
|
||||
@ -34,8 +34,8 @@
|
||||
/**
|
||||
* @file FlightTaskAutoMapper.hpp
|
||||
*
|
||||
* Flight task for autonomous, gps driven mode. The vehicle flies
|
||||
* along a straight line in between waypoints.
|
||||
* Abstract Flight task which generates local setpoints
|
||||
* based on the triplet type.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user