Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
ins_arduimu.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.h
"
11
12
float
ArduIMU_data
[
NB_DATA
];
13
14
float
ins_roll_neutral
;
15
float
ins_pitch_neutral
;
16
17
//mixer
18
float
pitch_of_throttle_gain
;
19
float
throttle_slew
;
20
21
// Updates from Ocaml sim
22
extern
float
sim_phi
;
23
extern
float
sim_theta
;
24
25
void
ArduIMU_init
(
void
) {}
26
void
ArduIMU_periodic
(
void
)
27
{
28
// Feed directly the estimator
29
struct
FloatEulers
att = {
30
sim_phi
-
ins_roll_neutral
,
31
sim_theta
-
ins_pitch_neutral
,
32
0.
33
};
34
stateSetNedToBodyEulers_f
(&att);
35
}
36
void
ArduIMU_periodicGPS
(
void
) {}
37
void
IMU_Daten_verarbeiten
(
void
) {}
38
ins_pitch_neutral
float ins_pitch_neutral
Definition:
ins_arduimu.c:15
NB_DATA
#define NB_DATA
Definition:
generic_com.c:38
ArduIMU_periodic
void ArduIMU_periodic(void)
Definition:
ins_arduimu.c:26
ArduIMU_init
void ArduIMU_init(void)
Definition:
ins_arduimu.c:25
ArduIMU_data
float ArduIMU_data[NB_DATA]
ArduIMU simulation.
Definition:
ins_arduimu.c:12
sim_theta
float sim_theta
in radians
Definition:
sim_ahrs.c:13
throttle_slew
float throttle_slew
Definition:
ins_arduimu.c:19
ins_arduimu.h
pitch_of_throttle_gain
float pitch_of_throttle_gain
Definition:
ins_arduimu.c:18
sim_phi
float sim_phi
in radians
Definition:
sim_ahrs.c:12
stateSetNedToBodyEulers_f
static void stateSetNedToBodyEulers_f(struct FloatEulers *ned_to_body_eulers)
Set vehicle body attitude from euler angles (float).
Definition:
state.h:1105
IMU_Daten_verarbeiten
void IMU_Daten_verarbeiten(void)
Definition:
ins_arduimu.c:37
FloatEulers
euler angles
Definition:
pprz_algebra_float.h:84
ins_roll_neutral
float ins_roll_neutral
Definition:
ins_arduimu.c:14
state.h
ArduIMU_periodicGPS
void ArduIMU_periodicGPS(void)
Definition:
ins_arduimu.c:36
sw
airborne
arch
sim
modules
ins
ins_arduimu.c
Generated on Tue Feb 1 2022 13:51:13 for Paparazzi UAS by
1.8.17