59 #include "position_estimation.h"
62 #define AIR_DENSITY 1.2
92 float home_coordinates[3];
103 float lin_forces_bf[3];
113 float rotorspeeds[ROTORCOUNT];
float wind_x
The x component of wind in global frame in m/s.
Definition: simulation.h:89
float rotor_arm_length
The distance between CoG and motor (in meter)
Definition: simulation.h:87
Structure containing the Attitude and Heading Reference System.
Definition: ahrs.h:58
bool * nav_plan_active
The pointer to the waypoint set flag.
Definition: simulation.h:126
barometer_t * pressure
The pointer to the barometer structure.
Definition: simulation.h:122
float sim_gravity
The value of gravity for the simulated forces.
Definition: simulation.h:93
float rotor_cd
The rotor drag coefficient.
Definition: simulation.h:75
float total_mass
The vehicle mass in kg.
Definition: simulation.h:81
Define the servos structure.
Definition: servos.h:82
float rotor_foil_area
The rotor foil area.
Definition: simulation.h:78
float rotor_diameter
The mean rotor diameter in m.
Definition: simulation.h:77
position_estimation_t * pos_est
The pointer to the position estimation structure.
Definition: simulation.h:121
The simulation model structure definition.
Definition: simulation.h:99
float rotor_momentum
The angular momentum of the rotor (for rotor inertia)
Definition: simulation.h:86
gps_t * gps
The pointer to the GPS structure.
Definition: simulation.h:123
Type definition for GPS data.
Definition: gps_ublox.h:635
The IMU structure.
Definition: imu.h:108
float yaw_momentum
The yaw angular momentum constants (assumed to be independent)
Definition: simulation.h:84
sensor_calib_t calib_gyro
The calibration values of the gyroscope.
Definition: simulation.h:109
const ahrs_t * estimated_attitude
The pointer to the attitude estimation structure.
Definition: simulation.h:125
The state structure.
Definition: state.h:79
float rotor_rpm_gain
The gain linking the command to rpm.
Definition: simulation.h:72
sensor_calib_t calib_accelero
The calibration values of the accelerometer.
Definition: simulation.h:110
Structure containing the accelero, gyro and magnetometer sensors' gains.
Definition: imu.h:68
float rotor_lpf
The low-pass filtered response of the rotors to simulate inertia and lag.
Definition: simulation.h:71
float rotor_pitch
The rotor pitch.
Definition: simulation.h:80
float dt
The time base of current update.
Definition: simulation.h:118
local_coordinates_t local_position
The simulated local position.
Definition: simulation.h:107
float roll_pitch_momentum
The roll and pitch angular momentum of the vehicle.
Definition: simulation.h:83
float rotor_cl
The rotor lift coefficient.
Definition: simulation.h:76
Define the barometer structure.
Definition: barometer.h:60
imu_t * imu
The pointer to the IMU structure.
Definition: simulation.h:120
float rotor_rpm_offset
The offset to convert servo commands to rpm.
Definition: simulation.h:73
simulation_config_t vehicle_config
The vehicle configuration variables.
Definition: simulation.h:115
uint32_t last_update
The last update in system ticks.
Definition: simulation.h:117
The vehicle simulation model structure definition.
Definition: simulation.h:69
float wind_y
The y component of wind in global frame in m/s.
Definition: simulation.h:90
sensor_calib_t calib_compass
The calibration values of the compass.
Definition: simulation.h:111
Local coordinates structure.
Definition: coord_conventions.h:73
ahrs_t ahrs
The simulated attitude estimation.
Definition: simulation.h:106
float vehicle_drag
The coefficient of drag of the whole vehicle.
Definition: simulation.h:82
The position estimator structure.
Definition: position_estimation.h:79
const servos_t * servos
The pointer to the servos structure.
Definition: simulation.h:124