Skip to content

Commit

Permalink
The current default imu-trimming for fixedwing... another FIXME
Browse files Browse the repository at this point in the history
  • Loading branch information
dewagter committed May 6, 2011
1 parent ce328a9 commit dfd47df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sw/airborne/subsystems/ahrs/ahrs_int_cmpl.c
Expand Up @@ -323,6 +323,15 @@ __attribute__ ((always_inline)) static inline void compute_body_orientation(void

// TODO use ahrs result directly
#include "estimator.h"
// remotely settable
#ifndef INS_ROLL_NEUTRAL_DEFAULT
#define INS_ROLL_NEUTRAL_DEFAULT 0
#endif
#ifndef INS_PITCH_NEUTRAL_DEFAULT
#define INS_PITCH_NEUTRAL_DEFAULT 0
#endif
float ins_roll_neutral = INS_ROLL_NEUTRAL_DEFAULT;
float ins_pitch_neutral = INS_PITCH_NEUTRAL_DEFAULT;
void ahrs_update_fw_estimator(void)
{
struct FloatEulers att;
Expand Down
3 changes: 3 additions & 0 deletions sw/airborne/subsystems/ahrs/ahrs_int_cmpl.h
Expand Up @@ -43,6 +43,9 @@ extern struct AhrsIntCmpl ahrs_impl;

// TODO copy ahrs to state instead of estimator
void ahrs_update_fw_estimator(void);
extern float ins_roll_neutral;
extern float ins_pitch_neutral;



#endif /* AHRS_INT_CMPL_H */

0 comments on commit dfd47df

Please sign in to comment.