Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
ahrs_sim.c File Reference
#include "subsystems/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)
 
void ahrs_sim_register (void)
 

Variables

float sim_phi
 in radians More...
 
float sim_theta
 in radians More...
 
float sim_psi
 in radians More...
 
float sim_p
 in radians/s More...
 
float sim_q
 in radians/s More...
 
float sim_r
 in radians/s More...
 
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

◆ ahrs_sim_register()

void ahrs_sim_register ( void  )

Definition at line 64 of file ahrs_sim.c.

References ahrs_register_impl().

+ Here is the call graph for this function:

◆ 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().

Referenced by sensors_task().

+ Here is the call graph for this function:
+ Here is the caller 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

in radians/s

Definition at line 15 of file sim_ahrs.c.

Referenced by provide_rates(), and update_ahrs_from_sim().

◆ sim_phi

float sim_phi

in radians

Definition at line 12 of file sim_ahrs.c.

Referenced by provide_attitude(), and update_ahrs_from_sim().

◆ sim_psi

float sim_psi

in radians

Definition at line 14 of file sim_ahrs.c.

Referenced by provide_attitude(), and update_ahrs_from_sim().

◆ sim_q

float sim_q

in radians/s

Definition at line 16 of file sim_ahrs.c.

Referenced by provide_rates(), and update_ahrs_from_sim().

◆ sim_r

float sim_r

in radians/s

Definition at line 17 of file sim_ahrs.c.

Referenced by provide_rates(), and update_ahrs_from_sim().

◆ sim_theta

float sim_theta

in radians

Definition at line 13 of file sim_ahrs.c.

Referenced by provide_attitude(), and update_ahrs_from_sim().