Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
ins_arduimu_basic.c
Go to the documentation of this file.
1
6
#include "generated/airframe.h"
7
#include "
state.h
"
8
9
// Arduimu empty implementation
10
#include "
modules/ins/ins_arduimu_basic.h
"
11
12
struct
FloatEulers
arduimu_eulers
;
13
struct
FloatRates
arduimu_rates
;
14
struct
FloatVect3
arduimu_accel
;
15
16
float
ins_roll_neutral
;
17
float
ins_pitch_neutral
;
18
bool
arduimu_calibrate_neutrals
;
19
20
// Updates from Ocaml sim
21
extern
float
sim_phi
;
22
extern
float
sim_theta
;
23
extern
float
sim_p
;
24
extern
float
sim_q
;
25
extern
float
sim_r
;
26
27
void
ArduIMU_init
(
void
) {}
28
void
ArduIMU_periodic
(
void
)
29
{
30
// Feed directly the estimator
31
struct
FloatEulers
att = {
32
sim_phi
-
ins_roll_neutral
,
33
sim_theta
-
ins_pitch_neutral
,
34
0.
35
};
36
stateSetNedToBodyEulers_f
(&att);
37
struct
FloatRates
rates = {
sim_p
,
sim_q
,
sim_r
};
38
stateSetBodyRates_f
(&rates);
39
}
40
void
ArduIMU_periodicGPS
(
void
) {}
41
void
ArduIMU_event
(
void
) {}
arduimu_rates
struct FloatRates arduimu_rates
Definition:
ins_arduimu_basic.c:13
sim_p
float sim_p
in radians/s
Definition:
sim_ahrs.c:15
ArduIMU_init
void ArduIMU_init(void)
Definition:
ins_arduimu_basic.c:27
sim_q
float sim_q
in radians/s
Definition:
sim_ahrs.c:16
arduimu_accel
struct FloatVect3 arduimu_accel
Definition:
ins_arduimu_basic.c:14
ins_roll_neutral
float ins_roll_neutral
Definition:
ins_arduimu_basic.c:16
arduimu_calibrate_neutrals
bool arduimu_calibrate_neutrals
Definition:
ins_arduimu_basic.c:18
sim_r
float sim_r
in radians/s
Definition:
sim_ahrs.c:17
FloatVect3
Definition:
pprz_algebra_float.h:54
ins_pitch_neutral
float ins_pitch_neutral
Definition:
ins_arduimu_basic.c:17
stateSetBodyRates_f
static void stateSetBodyRates_f(struct FloatRates *body_rate)
Set vehicle body angular rate (float).
Definition:
state.h:1181
ArduIMU_periodicGPS
void ArduIMU_periodicGPS(void)
Definition:
ins_arduimu_basic.c:40
ArduIMU_periodic
void ArduIMU_periodic(void)
Definition:
ins_arduimu_basic.c:28
sim_theta
float sim_theta
in radians
Definition:
sim_ahrs.c:13
stateSetNedToBodyEulers_f
static void stateSetNedToBodyEulers_f(struct FloatEulers *ned_to_body_eulers)
Set vehicle body attitude from euler angles (float).
Definition:
state.h:1105
ins_arduimu_basic.h
FloatEulers
euler angles
Definition:
pprz_algebra_float.h:84
state.h
arduimu_eulers
struct FloatEulers arduimu_eulers
ArduIMU simulation.
Definition:
ins_arduimu_basic.c:12
sim_phi
float sim_phi
in radians
Definition:
sim_ahrs.c:12
ArduIMU_event
void ArduIMU_event(void)
Definition:
ins_arduimu_basic.c:41
FloatRates
angular rates
Definition:
pprz_algebra_float.h:93
sw
airborne
arch
sim
modules
ins
ins_arduimu_basic.c
Generated on Tue Feb 1 2022 13:51:13 for Paparazzi UAS by
1.8.17