Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
jsbsim_hw.c
Go to the documentation of this file.
1 /* Definitions and declarations required to compile autopilot code on a
2  i386 architecture */
3 
4 #include "jsbsim_hw.h"
5 
6 #include <stdio.h>
7 #include <assert.h>
8 #include <sys/time.h>
9 #include <sys/stat.h>
10 #include <time.h>
11 #include <string.h>
12 
13 
14 /* Dummy definitions to replace the ones from the files not compiled in the simulator */
15 //uint8_t ir_estim_mode;
16 //uint8_t vertical_mode;
17 //uint8_t inflight_calib_mode;
18 //bool_t rc_event_1, rc_event_2;
20 //float alt_roll_pgain;
21 //float roll_rate_pgain;
24 //uint16_t ppm_pulses[ PPM_NB_PULSES ];
25 //volatile bool_t ppm_valid;
26 
28 
29 void update_bat(double bat) {
30  electrical.vsupply = (int) (bat * 10.);
31 }
32 
33 void adc_generic_init( void ) {}
34 void adc_generic_periodic( void ) {}
unsigned short uint16_t
Definition: types.h:16
uint16_t adc_generic_val2
Definition: jsbsim_hw.c:23
void adc_generic_init(void)
Definition: jsbsim_hw.c:33
uint16_t vsupply
supply voltage in decivolts
Definition: electrical.h:8
uint8_t link_fbw_fbw_nb_err
Definition: jsbsim_hw.c:19
uint16_t adc_generic_val1
Definition: jsbsim_hw.c:22
uint8_t link_fbw_nb_err
Definition: jsbsim_hw.c:19
unsigned char uint8_t
Definition: types.h:14
uint8_t ac_id
Definition: jsbsim_hw.c:27
void update_bat(double bat)
Definition: jsbsim_hw.c:29
void adc_generic_periodic(void)
Definition: jsbsim_hw.c:34
struct Electrical electrical
uint8_t gps_nb_ovrn
Definition: jsbsim_hw.c:19