diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-02-01 11:59:39 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-02-01 11:59:39 +0100 |
commit | 589f6cdb44642f4b12aef9deffc8af11fa53b026 (patch) | |
tree | d4f21492c914659c1019b31636248da3b76676fc /src/modules/navigator/navigator_main.cpp | |
parent | e8dd70e815033ec1a291ac5190dacfeb7d728dba (diff) | |
download | px4-firmware-589f6cdb44642f4b12aef9deffc8af11fa53b026.tar.gz px4-firmware-589f6cdb44642f4b12aef9deffc8af11fa53b026.tar.bz2 px4-firmware-589f6cdb44642f4b12aef9deffc8af11fa53b026.zip |
navigator: in start_loiter set _pos_sp_triplet.current.type to SETPOINT_TYPE_LOITER instead of SETPOINT_TYPE_NORMAL
Diffstat (limited to 'src/modules/navigator/navigator_main.cpp')
-rw-r--r-- | src/modules/navigator/navigator_main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index e961a8f94..dace00ec5 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -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; |