forked from Archive/PX4-Autopilot
navigator: fix typo
This commit is contained in:
parent
526fa9e9dd
commit
e6d378c9aa
|
@ -554,7 +554,7 @@ MissionBlock::mission_item_to_position_setpoint(const mission_item_s &item, posi
|
|||
case NAV_CMD_LOITER_TO_ALT:
|
||||
|
||||
// initially use current altitude, and switch to mission item altitude once in loiter position
|
||||
if (_navigator->get_loiter_min_alt() > 0.0f) { // ignore _param_loiter_min_alt if smaller then 0 (-1)
|
||||
if (_navigator->get_loiter_min_alt() > 0.0f) { // ignore _param_loiter_min_alt if smaller than 0 (-1)
|
||||
sp->alt = math::max(_navigator->get_global_position()->alt,
|
||||
_navigator->get_home_position()->alt + _navigator->get_loiter_min_alt());
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ enum NAV_FRAME {
|
|||
/**
|
||||
* Global position setpoint in WGS84 coordinates.
|
||||
*
|
||||
* This is the position the MAV is heading towards. If it of type loiter,
|
||||
* This is the position the MAV is heading towards. If it is of type loiter,
|
||||
* the MAV is circling around it with the given loiter radius in meters.
|
||||
*
|
||||
* Corresponds to one of the DM_KEY_WAYPOINTS_OFFBOARD_* dataman items
|
||||
|
|
Loading…
Reference in New Issue