Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
ahrs_sim.c File Reference

Dummy plug to set the AHRS from the simple OCaml simulator. More...

#include "modules/ahrs/ahrs_sim.h"
#include "math/pprz_algebra_float.h"
#include "generated/airframe.h"
#include "state.h"
+ Include dependency graph for ahrs_sim.c:

Go to the source code of this file.

Macros

#define INS_ROLL_NEUTRAL_DEFAULT   0
 
#define INS_PITCH_NEUTRAL_DEFAULT   0
 

Functions

void update_ahrs_from_sim (void)
 

Variables

float sim_phi
 
float sim_theta
 
float sim_psi
 
float sim_p
 
float sim_q
 
float sim_r
 
float ins_roll_neutral = INS_ROLL_NEUTRAL_DEFAULT
 
float ins_pitch_neutral = INS_PITCH_NEUTRAL_DEFAULT
 

Detailed Description

Dummy plug to set the AHRS from the simple OCaml simulator.

Definition in file ahrs_sim.c.

Macro Definition Documentation

◆ INS_PITCH_NEUTRAL_DEFAULT

#define INS_PITCH_NEUTRAL_DEFAULT   0

Definition at line 46 of file ahrs_sim.c.

◆ INS_ROLL_NEUTRAL_DEFAULT

#define INS_ROLL_NEUTRAL_DEFAULT   0

Definition at line 43 of file ahrs_sim.c.

Function Documentation

◆ update_ahrs_from_sim()

void update_ahrs_from_sim ( void  )

Definition at line 52 of file ahrs_sim.c.

References sim_p, sim_phi, sim_psi, sim_q, sim_r, sim_theta, stateSetBodyRates_f(), and stateSetNedToBodyEulers_f().

+ Here is the call graph for this function:

Variable Documentation

◆ ins_pitch_neutral

float ins_pitch_neutral = INS_PITCH_NEUTRAL_DEFAULT

Definition at line 49 of file ahrs_sim.c.

◆ ins_roll_neutral

float ins_roll_neutral = INS_ROLL_NEUTRAL_DEFAULT

Definition at line 48 of file ahrs_sim.c.

◆ sim_p

float sim_p
extern

Referenced by update_ahrs_from_sim().

◆ sim_phi

float sim_phi
extern

Referenced by update_ahrs_from_sim().

◆ sim_psi

float sim_psi
extern

Referenced by update_ahrs_from_sim().

◆ sim_q

float sim_q
extern

Referenced by update_ahrs_from_sim().

◆ sim_r

float sim_r
extern

Referenced by update_ahrs_from_sim().

◆ sim_theta

float sim_theta
extern

Referenced by update_ahrs_from_sim().