Skip to content

Commit

Permalink
[ahrs] AHRS_PROPAGATE_FREQUENCY defaults to PERIODIC_FREQUENCY
Browse files Browse the repository at this point in the history
  • Loading branch information
flixr committed Jun 1, 2012
1 parent 68aa933 commit 6695964
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 1 addition & 2 deletions conf/airframes/examples/quadrotor_lisa_m_2_pwm.xml
Expand Up @@ -13,7 +13,7 @@

<subsystem name="radio_control" type="ppm"/>
<subsystem name="telemetry" type="transparent"/>
<subsystem name="imu" type="aspirin_v2.0"/>
<subsystem name="imu" type="aspirin_v2.1"/>
<subsystem name="gps" type="ublox"/>
<subsystem name="stabilization" type="int_quat"/>
<subsystem name="ahrs" type="int_cmpl_quat"/>
Expand Down Expand Up @@ -73,7 +73,6 @@
</section>

<section name="AHRS" prefix="AHRS_">
<define name="PROPAGATE_FREQUENCY" value="512"/>
<define name="H_X" value="0.3770441"/>
<define name="H_Y" value="0.0193986"/>
<define name="H_Z" value="0.9259921"/>
Expand Down
1 change: 0 additions & 1 deletion conf/airframes/examples/quadrotor_lisa_m_mkk.xml
Expand Up @@ -67,7 +67,6 @@
</section>

<section name="AHRS" prefix="AHRS_">
<define name="PROPAGATE_FREQUENCY" value="512"/>
<define name="H_X" value="0.3770441"/>
<define name="H_Y" value="0.0193986"/>
<define name="H_Z" value="0.9259921"/>
Expand Down
1 change: 0 additions & 1 deletion conf/airframes/fraser_lisa_m_rotorcraft.xml
Expand Up @@ -101,7 +101,6 @@
</section>

<section name="AHRS" prefix="AHRS_">
<define name="PROPAGATE_FREQUENCY" value="512"/>
<define name="H_X" value="0.3770441"/>
<define name="H_Y" value="0.0193986"/>
<define name="H_Z" value="0.9259921"/>
Expand Down
4 changes: 4 additions & 0 deletions sw/airborne/subsystems/ahrs/ahrs_float_cmpl.c
Expand Up @@ -50,6 +50,10 @@
#warning "Using magnetometer and GPS course to update heading. Probably better to set USE_MAGNETOMETER=0 if you want to use GPS course."
#endif

#ifndef AHRS_PROPAGATE_FREQUENCY
#define AHRS_PROPAGATE_FREQUENCY PERIODIC_FREQUENCY
#endif

void ahrs_update_mag_full(void);
void ahrs_update_mag_2d(void);
void ahrs_update_mag_2d_dumb(void);
Expand Down
4 changes: 4 additions & 0 deletions sw/airborne/subsystems/ahrs/ahrs_int_cmpl_quat.c
Expand Up @@ -46,6 +46,10 @@ static inline void ahrs_update_mag_2d(void);
#warning "Using magnetometer and GPS course to update heading. Probably better to set USE_MAGNETOMETER=0 if you want to use GPS course."
#endif

#ifndef AHRS_PROPAGATE_FREQUENCY
#define AHRS_PROPAGATE_FREQUENCY PERIODIC_FREQUENCY
#endif

struct AhrsIntCmpl ahrs_impl;

static inline void compute_imu_euler_and_rmat_from_quat(void);
Expand Down

0 comments on commit 6695964

Please sign in to comment.