diff options
author | Julian Oes <julian@oes.ch> | 2014-11-11 10:42:26 +1000 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2014-11-11 10:42:26 +1000 |
commit | d98831c3b50addab0084f9636060cece46ff92bc (patch) | |
tree | 6af5d7d19f9d5a1247b8fbd3204f1690ef23e68f /src/modules | |
parent | 3c9a73f3e41a379e5e7bbf6e98d67facc3b2b49f (diff) | |
download | px4-firmware-d98831c3b50addab0084f9636060cece46ff92bc.tar.gz px4-firmware-d98831c3b50addab0084f9636060cece46ff92bc.tar.bz2 px4-firmware-d98831c3b50addab0084f9636060cece46ff92bc.zip |
navigator: move waypoint reached reset to a more obvious location
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/navigator/mission.cpp | 1 | ||||
-rw-r--r-- | src/modules/navigator/navigator_main.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/navigator/mission.cpp b/src/modules/navigator/mission.cpp index 7fac69a61..b8e3274fd 100644 --- a/src/modules/navigator/mission.cpp +++ b/src/modules/navigator/mission.cpp @@ -707,6 +707,7 @@ Mission::set_mission_item_reached() _navigator->get_mission_result()->reached = true; _navigator->get_mission_result()->seq_reached = _current_offboard_mission_index; _navigator->publish_mission_result(); + reset_mission_item_reached(); } void diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index eff3a5938..e933919fb 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -630,8 +630,6 @@ Navigator::publish_mission_result() /* advertise and publish */ _mission_result_pub = orb_advertise(ORB_ID(mission_result), &_mission_result); } - /* reset reached bool */ - _mission_result.reached = false; } void |