diff options
author | Ban Siesta <bansiesta@gmail.com> | 2014-12-19 23:36:32 +0000 |
---|---|---|
committer | Ban Siesta <bansiesta@gmail.com> | 2014-12-19 23:36:32 +0000 |
commit | f0ff914b626fbfb497143f80b19376efb524b9e1 (patch) | |
tree | 5f59df961ca8d8d3c196f79d64e635e6ba9fef23 /src/modules/navigator/gpsfailure.cpp | |
parent | c9ca61ef5b23a370fcaf3e2a0546ab5452b65733 (diff) | |
download | px4-firmware-f0ff914b626fbfb497143f80b19376efb524b9e1.tar.gz px4-firmware-f0ff914b626fbfb497143f80b19376efb524b9e1.tar.bz2 px4-firmware-f0ff914b626fbfb497143f80b19376efb524b9e1.zip |
navigator: don't publish mission result immediately but only after every iteration of the navigator
Diffstat (limited to 'src/modules/navigator/gpsfailure.cpp')
-rw-r--r-- | src/modules/navigator/gpsfailure.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/navigator/gpsfailure.cpp b/src/modules/navigator/gpsfailure.cpp index cd55f60b0..e370796c0 100644 --- a/src/modules/navigator/gpsfailure.cpp +++ b/src/modules/navigator/gpsfailure.cpp @@ -141,7 +141,7 @@ GpsFailure::set_gpsf_item() case GPSF_STATE_TERMINATE: { /* Request flight termination from the commander */ _navigator->get_mission_result()->flight_termination = true; - _navigator->publish_mission_result(); + _navigator->set_mission_result_updated(); warnx("gps fail: request flight termination"); } default: |