diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-01-28 20:40:05 +0100 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-01-28 20:40:05 +0100 |
commit | 6a1a29f77ecc9ded341bfbca037c9a6768ed3fb4 (patch) | |
tree | 0a011a39651787dd6df2ad105bf619f09e2e3ac6 /src/modules/navigator/navigator_main.cpp | |
parent | 48f1b7e1c77a66973c6bb847290018531a99503c (diff) | |
download | px4-firmware-6a1a29f77ecc9ded341bfbca037c9a6768ed3fb4.tar.gz px4-firmware-6a1a29f77ecc9ded341bfbca037c9a6768ed3fb4.tar.bz2 px4-firmware-6a1a29f77ecc9ded341bfbca037c9a6768ed3fb4.zip |
global_position topic: added baro_alt, mc_pos_control: SEATBELT mode fixed, use baro/AMSL alt
Diffstat (limited to 'src/modules/navigator/navigator_main.cpp')
-rw-r--r-- | src/modules/navigator/navigator_main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index 5a02bf522..170e5df05 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -840,6 +840,7 @@ Navigator::task_main() /* publish position setpoint triplet if updated */ if (_pos_sp_triplet_updated) { + _pos_sp_triplet_updated = false; publish_position_setpoint_triplet(); } @@ -882,9 +883,9 @@ Navigator::start() void Navigator::status() { - warnx("Global position is %svalid", _global_pos.valid ? "" : "in"); + warnx("Global position is %svalid", _global_pos.global_valid ? "" : "in"); - if (_global_pos.valid) { + if (_global_pos.global_valid) { warnx("Longitude %5.5f degrees, latitude %5.5f degrees", _global_pos.lon, _global_pos.lat); warnx("Altitude %5.5f meters, altitude above home %5.5f meters", (double)_global_pos.alt, (double)(_global_pos.alt - _home_pos.alt)); |