Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
sim_ir.c
Go to the documentation of this file.
1 
8 #include <inttypes.h>
10 #include "generated/airframe.h"
11 
12 #include <caml/mlvalues.h>
13 
15 
16 void ir_gain_calib(void) {
17 }
18 
20  value roll __attribute__ ((unused)),
21  value front __attribute__ ((unused)),
22  value top __attribute__ ((unused)),
23  value air_speed
24  ) {
25  // INFRARED_TELEMETRY : Stupid hack to use with modules
26 #if USE_INFRARED || USE_INFRARED_TELEMETRY
27  infrared.roll = Int_val(roll);
28  infrared.pitch = Int_val(front);
29  infrared.top = Int_val(top);
30 #endif
31  sim_air_speed = Double_val(air_speed);
32  return Val_unit;
33 }
34 
struct Infrared infrared
Definition: infrared.c:36
float sim_air_speed
Definition: sim_ir.c:14
int16_t roll
Definition: infrared.h:131
void ir_gain_calib(void)
Definition: sim_ir.c:16
value set_ir_and_airspeed(value roll __attribute__((unused)), value front __attribute__((unused)), value top __attribute__((unused)), value air_speed)
Definition: sim_ir.c:19
int16_t pitch
Definition: infrared.h:132
int16_t top
Definition: infrared.h:133
__attribute__((always_inline))
Definition: i2c_arch.c:35