Navigator: set loiter WP correctly

This commit is contained in:
Julian Oes 2014-02-13 15:30:06 +01:00
parent f6694c2cef
commit 4982e81983
1 changed files with 1 additions and 2 deletions

View File

@ -1080,9 +1080,8 @@ Navigator::start_loiter()
mavlink_log_info(_mavlink_fd, "[navigator] loiter at current altitude"); mavlink_log_info(_mavlink_fd, "[navigator] loiter at current altitude");
} }
_pos_sp_triplet.current.type = SETPOINT_TYPE_LOITER;
} }
_pos_sp_triplet.current.type = SETPOINT_TYPE_LOITER;
_pos_sp_triplet.current.loiter_radius = _parameters.loiter_radius; _pos_sp_triplet.current.loiter_radius = _parameters.loiter_radius;
_pos_sp_triplet.current.loiter_direction = 1; _pos_sp_triplet.current.loiter_direction = 1;
_pos_sp_triplet.previous.valid = false; _pos_sp_triplet.previous.valid = false;