diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-08-20 11:15:44 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-08-20 11:15:44 +0200 |
commit | 767f253976746a5533dd1a258373368539b4359e (patch) | |
tree | f4a22e435d713f34f8a1c9e6bcd0b5189e602a88 | |
parent | 9b239bc00197a862bca985f67457f8c47d163eb7 (diff) | |
download | px4-firmware-767f253976746a5533dd1a258373368539b4359e.tar.gz px4-firmware-767f253976746a5533dd1a258373368539b4359e.tar.bz2 px4-firmware-767f253976746a5533dd1a258373368539b4359e.zip |
Fixed attitude rate limiting
-rw-r--r-- | apps/mavlink/mavlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/mavlink/mavlink.c b/apps/mavlink/mavlink.c index 47eab6be8..b667269ed 100644 --- a/apps/mavlink/mavlink.c +++ b/apps/mavlink/mavlink.c @@ -467,7 +467,7 @@ static int set_mavlink_interval_limit(int mavlink_msg_id, int min_interval) break; case MAVLINK_MSG_ID_ATTITUDE: /* attitude sub triggers attitude */ - orb_set_interval(att_sub, 100); + orb_set_interval(att_sub, min_interval); break; default: /* not found */ @@ -520,6 +520,7 @@ static void *uorb_receiveloop(void *arg) /* --- ATTITUDE VALUE --- */ /* subscribe to ORB for attitude */ att_sub = orb_subscribe(ORB_ID(vehicle_attitude)); + orb_set_interval(att_sub, 100); fds[fdsc_count].fd = att_sub; fds[fdsc_count].events = POLLIN; fdsc_count++; |