MAV'RIC
conf_sim_model.h
1 /*
2  * conf_sim_model.h
3  *
4  * Created: 06/08/2013 20:26:35
5  * Author: sfx
6  */
7 
8 
9 #ifndef CONF_SIM_MODEL_H_
10 #define CONF_SIM_MODEL_H_
11 #include "simulation.h"
12 
13 
14 // default home location (EFPL Esplanade)
15 #define HOME_LONGITUDE 6.566044801857777
16 #define HOME_LATITUDE 46.51852236174565
17 #define HOME_ALTITUDE 398.0
18 
19 #define AIR_DENSITY 1.2
20 
21 static simulation_model_t vehicle_model_parameters= {
22  .rotor_lpf = 0.95, // low pass filter constant to express rotor inertia/lag. 0.0=no inertia, 1.0=infinite inertia
23  .rotor_rpm_gain = 3500.0,
24  .rotor_rpm_offset = -1.0, // offset to convert servo commands to rpm (servo command that corresponds to zero rpm)
25  .vehicle_drag = 0.1, // vehicle drag coefficient * vehicle area
26  .rotor_cd = 0.03, // coefficient of drag of rotor blade
27  .rotor_cl = 0.9, // coefficient of lift of rotor blade
28  .rotor_diameter = 0.14, // mean "effective" rotor diameter
29  .rotor_foil_area = 0.18 * 0.015, // area of the propeller blades in m^2
30  .rotor_pitch = 0.15, // rotor pitch in m/revolution (7x6" roughly 0.15m)
31  .total_mass = 0.4, // vehicle mass in kg
32  .roll_pitch_momentum= 0.05 * 0.17 / 1.4142, // angular momentum constants (assumed to be independent) (in kg/m^2)
33  .yaw_momentum = 0.1 * 0.17 , // approximate motor arm mass * rotor arm length
34  .rotor_momentum = 0.003*0.03, // rotor inertia (5g off center mass * rotor radius)
35  .rotor_arm_length = 0.17 // distance between CoG and motor (in meter)
36 
37 };
38 
39 
40 
41 
42 #endif /* CONF_SIM_MODEL_H_ */
The simulation model structure definition.
Definition: simulation.h:99