diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-08-16 16:57:44 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-08-16 16:57:44 +0200 |
commit | 18e71843be6389e9c27a52b2117e78305496aa2e (patch) | |
tree | 3c232872feaf34a1a031dc253560d269aa63a3b4 /apps/mavlink/mavlink.c | |
parent | 46c4b987ccdd3c56588bf639a5500d974d5d2be6 (diff) | |
download | px4-firmware-18e71843be6389e9c27a52b2117e78305496aa2e.tar.gz px4-firmware-18e71843be6389e9c27a52b2117e78305496aa2e.tar.bz2 px4-firmware-18e71843be6389e9c27a52b2117e78305496aa2e.zip |
Increased attitude estimator bm stack
Diffstat (limited to 'apps/mavlink/mavlink.c')
-rw-r--r-- | apps/mavlink/mavlink.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/mavlink/mavlink.c b/apps/mavlink/mavlink.c index 8e0fe629b..c151d791b 100644 --- a/apps/mavlink/mavlink.c +++ b/apps/mavlink/mavlink.c @@ -1320,8 +1320,10 @@ int mavlink_main(int argc, char *argv[]) v_status.errors_count1, v_status.errors_count2, v_status.errors_count3, v_status.errors_count4); /* send over MAVLink */ - mavlink_msg_rc_channels_raw_send(chan, rc.timestamp / 1000, 0, rc.chan[0].raw, rc.chan[1].raw, rc.chan[2].raw, rc.chan[3].raw, + if ((hrt_absolute_time() - rc.timestamp) < 200000) { + mavlink_msg_rc_channels_raw_send(chan, rc.timestamp / 1000, 0, rc.chan[0].raw, rc.chan[1].raw, rc.chan[2].raw, rc.chan[3].raw, rc.chan[4].raw, rc.chan[5].raw, rc.chan[6].raw, rc.chan[7].raw, rc.rssi); + } lowspeed_counter = 0; } |