diff options
author | Julian Oes <julian@oes.ch> | 2014-02-13 15:30:06 +0100 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2014-02-13 15:30:06 +0100 |
commit | 4982e819837195aa512fb977639ce1dd0c0cec3a (patch) | |
tree | a12734284a561f04412d952f1d12a4963fb5b489 /src/modules/navigator | |
parent | f6694c2cef62ee3284598ed1b4d8c6954effab4e (diff) | |
download | px4-firmware-4982e819837195aa512fb977639ce1dd0c0cec3a.tar.gz px4-firmware-4982e819837195aa512fb977639ce1dd0c0cec3a.tar.bz2 px4-firmware-4982e819837195aa512fb977639ce1dd0c0cec3a.zip |
Navigator: set loiter WP correctly
Diffstat (limited to 'src/modules/navigator')
-rw-r--r-- | src/modules/navigator/navigator_main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index 5139ae6cd..260356eca 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -1080,9 +1080,8 @@ Navigator::start_loiter() 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_direction = 1; _pos_sp_triplet.previous.valid = false; |