diff options
author | James Goppert <james.goppert@gmail.com> | 2013-01-15 13:21:13 -0500 |
---|---|---|
committer | James Goppert <james.goppert@gmail.com> | 2013-01-15 13:21:13 -0500 |
commit | 68b92cd4fc2c4df3de15ef19e723edb67a108ea0 (patch) | |
tree | 2e14e4051e66e2b6b81de567900959847fccddc2 /apps/mavlink | |
parent | 9cf3d51aec4e73f626cfdea29b19bdfe80eea384 (diff) | |
download | px4-firmware-68b92cd4fc2c4df3de15ef19e723edb67a108ea0.tar.gz px4-firmware-68b92cd4fc2c4df3de15ef19e723edb67a108ea0.tar.bz2 px4-firmware-68b92cd4fc2c4df3de15ef19e723edb67a108ea0.zip |
Slowed HIL status updates. Also prevented posCor. when gps not init.
Diffstat (limited to 'apps/mavlink')
-rw-r--r-- | apps/mavlink/mavlink_receiver.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/mavlink/mavlink_receiver.c b/apps/mavlink/mavlink_receiver.c index fa63c419f..0b63c30a4 100644 --- a/apps/mavlink/mavlink_receiver.c +++ b/apps/mavlink/mavlink_receiver.c @@ -367,8 +367,8 @@ handle_message(mavlink_message_t *msg) hil_frames += 1 ; // output - if ((timestamp - old_timestamp) > 1000000) { - printf("receiving hil imu at %d hz\n", hil_frames); + if ((timestamp - old_timestamp) > 10000000) { + printf("receiving hil imu at %d hz\n", hil_frames/10); old_timestamp = timestamp; hil_frames = 0; } @@ -412,8 +412,8 @@ handle_message(mavlink_message_t *msg) hil_frames += 1 ; // output - if ((timestamp - old_timestamp) > 1000000) { - printf("receiving hil gps at %d hz\n", hil_frames); + if ((timestamp - old_timestamp) > 10000000) { + printf("receiving hil gps at %d hz\n", hil_frames/10); old_timestamp = timestamp; hil_frames = 0; } @@ -454,8 +454,8 @@ handle_message(mavlink_message_t *msg) hil_frames += 1 ; // output - if ((timestamp - old_timestamp) > 1000000) { - printf("receiving hil pressure at %d hz\n", hil_frames); + if ((timestamp - old_timestamp) > 10000000) { + printf("receiving hil pressure at %d hz\n", hil_frames/10); old_timestamp = timestamp; hil_frames = 0; } |