navigator: fix typo

This commit is contained in:
CarlOlsson 2018-10-18 16:16:56 +02:00 committed by Daniel Agar
parent 526fa9e9dd
commit e6d378c9aa
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -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