paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [5828] Add ifdef for body_to_imu rotation, in some s


From: Allen Ibara
Subject: [paparazzi-commits] [5828] Add ifdef for body_to_imu rotation, in some silly cases it may not be defined
Date: Tue, 07 Sep 2010 17:46:20 +0000

Revision: 5828
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5828
Author:   aibara
Date:     2010-09-07 17:46:20 +0000 (Tue, 07 Sep 2010)
Log Message:
-----------
Add ifdef for body_to_imu rotation, in some silly cases it may not be defined

Modified Paths:
--------------
    paparazzi3/trunk/sw/airborne/booz/booz_imu.c

Modified: paparazzi3/trunk/sw/airborne/booz/booz_imu.c
===================================================================
--- paparazzi3/trunk/sw/airborne/booz/booz_imu.c        2010-09-07 17:45:27 UTC 
(rev 5827)
+++ paparazzi3/trunk/sw/airborne/booz/booz_imu.c        2010-09-07 17:46:20 UTC 
(rev 5828)
@@ -38,6 +38,7 @@
     Compute quaternion and rotation matrix
     for conversions between body and imu frame
   */
+#ifdef IMU_BODY_TO_IMU_PHI
   struct Int32Eulers body_to_imu_eulers =
     { ANGLE_BFP_OF_REAL(IMU_BODY_TO_IMU_PHI), 
       ANGLE_BFP_OF_REAL(IMU_BODY_TO_IMU_THETA), 
@@ -45,6 +46,7 @@
   INT32_QUAT_OF_EULERS(booz_imu.body_to_imu_quat, body_to_imu_eulers);
   INT32_QUAT_NORMALISE(booz_imu.body_to_imu_quat);
   INT32_RMAT_OF_EULERS(booz_imu.body_to_imu_rmat, body_to_imu_eulers);
+#endif
 
   booz_imu_impl_init();
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]