diff options
author | Thomas Gubler <thomasgubler@student.ethz.ch> | 2013-09-19 11:10:37 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@student.ethz.ch> | 2013-09-20 09:44:48 +0200 |
commit | d542735b2a945ed874fab8b004f9c31e87bc1346 (patch) | |
tree | c9aaa65d412e4c43fa0ff63ca44243decc8995aa /src/modules | |
parent | 2fb58f9990f06f5c34ec9c2e8f36f6a27e465b46 (diff) | |
download | px4-firmware-d542735b2a945ed874fab8b004f9c31e87bc1346.tar.gz px4-firmware-d542735b2a945ed874fab8b004f9c31e87bc1346.tar.bz2 px4-firmware-d542735b2a945ed874fab8b004f9c31e87bc1346.zip |
re-enable state hil
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/mavlink/mavlink_receiver.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/mavlink/mavlink_receiver.cpp b/src/modules/mavlink/mavlink_receiver.cpp index 222d1f45f..a3ef1d63b 100644 --- a/src/modules/mavlink/mavlink_receiver.cpp +++ b/src/modules/mavlink/mavlink_receiver.cpp @@ -574,6 +574,7 @@ handle_message(mavlink_message_t *msg) orb_publish(ORB_ID(airspeed), pub_hil_airspeed, &airspeed); } + hil_global_pos.valid = true; hil_global_pos.lat = hil_state.lat; hil_global_pos.lon = hil_state.lon; hil_global_pos.alt = hil_state.alt / 1000.0f; |