navigator: in start_loiter set _pos_sp_triplet.current.type to SETPOINT_TYPE_LOITER instead of SETPOINT_TYPE_NORMAL

This commit is contained in:
Thomas Gubler 2014-02-01 11:59:39 +01:00
parent e8dd70e815
commit 589f6cdb44
1 changed files with 1 additions and 1 deletions

View File

@ -1078,7 +1078,7 @@ Navigator::start_loiter()
mavlink_log_info(_mavlink_fd, "[navigator] loiter at current altitude");
}
_pos_sp_triplet.current.type = SETPOINT_TYPE_NORMAL;
_pos_sp_triplet.current.type = SETPOINT_TYPE_LOITER;
}
_pos_sp_triplet.current.loiter_radius = _parameters.loiter_radius;