[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paparazzi-commits] [6113] Send MAG_RAW slower for booz test imu
From: |
Allen Ibara |
Subject: |
[paparazzi-commits] [6113] Send MAG_RAW slower for booz test imu |
Date: |
Fri, 08 Oct 2010 19:09:14 +0000 |
Revision: 6113
http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=6113
Author: aibara
Date: 2010-10-08 19:09:13 +0000 (Fri, 08 Oct 2010)
Log Message:
-----------
Send MAG_RAW slower for booz test imu
Modified Paths:
--------------
paparazzi3/trunk/sw/airborne/booz/test/booz_test_imu.c
Modified: paparazzi3/trunk/sw/airborne/booz/test/booz_test_imu.c
===================================================================
--- paparazzi3/trunk/sw/airborne/booz/test/booz_test_imu.c 2010-10-08
18:28:05 UTC (rev 6112)
+++ paparazzi3/trunk/sw/airborne/booz/test/booz_test_imu.c 2010-10-08
19:09:13 UTC (rev 6113)
@@ -134,15 +134,15 @@
ImuScaleMag(imu);
static uint8_t cnt;
cnt++;
- if (cnt > 1) cnt = 0;
+ if (cnt > 10) cnt = 0;
- if (cnt%2) {
+ if (cnt == 0) {
DOWNLINK_SEND_BOOZ2_MAG(DefaultChannel,
&imu.mag.x,
&imu.mag.y,
&imu.mag.z);
}
- else {
+ else if (cnt == 5) {
DOWNLINK_SEND_IMU_MAG_RAW(DefaultChannel,
&imu.mag_unscaled.x,
&imu.mag_unscaled.y,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paparazzi-commits] [6113] Send MAG_RAW slower for booz test imu,
Allen Ibara <=