Skip to content

Commit

Permalink
[rotorcraft] AHRS_EULER_INT message only for CMPL_EULER
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Mar 18, 2013
1 parent 7f899b5 commit 771d59f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sw/airborne/firmwares/rotorcraft/telemetry.h
Expand Up @@ -464,6 +464,7 @@
&(stateGetNedToBodyQuat_i()->qz)); \
}

#if USE_AHRS_CMPL_EULER
#define PERIODIC_SEND_AHRS_EULER_INT(_trans, _dev) { \
DOWNLINK_SEND_AHRS_EULER_INT(_trans, _dev, \
&ahrs_impl.ltp_to_imu_euler.phi, \
Expand All @@ -473,6 +474,9 @@
&(stateGetNedToBodyEulers_i()->theta), \
&(stateGetNedToBodyEulers_i()->psi)); \
}
#else
#define PERIODIC_SEND_AHRS_EULER_INT(_trans, _dev) {}
#endif

#define PERIODIC_SEND_AHRS_RMAT_INT(_trans, _dev) { \
struct Int32RMat* att_rmat = stateGetNedToBodyRMat_i(); \
Expand Down

0 comments on commit 771d59f

Please sign in to comment.