Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros 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;
22 //bool_t gpio1_status;
25 //uint16_t ppm_pulses[ PPM_NB_PULSES ];
26 //volatile bool_t ppm_valid;
27 
29 
30 void update_bat(double bat) {
31  electrical.vsupply = (int) (bat * 10.);
32 }
33 
34 void adc_generic_init( void ) {}
35 void adc_generic_periodic( void ) {}
unsigned short uint16_t
Definition: types.h:16
uint16_t adc_generic_val2
Definition: jsbsim_hw.c:24
void adc_generic_init(void)
Definition: jsbsim_hw.c:34
uint8_t link_fbw_fbw_nb_err
Definition: jsbsim_hw.c:19
uint16_t adc_generic_val1
Definition: jsbsim_hw.c:23
uint8_t vsupply
Definition: electrical.h:8
uint8_t link_fbw_nb_err
Definition: jsbsim_hw.c:19
unsigned char uint8_t
Definition: types.h:14
struct Electrical electrical
Definition: electrical.c:16
uint8_t ac_id
Definition: jsbsim_hw.c:28
void update_bat(double bat)
Definition: jsbsim_hw.c:30
void adc_generic_periodic(void)
Definition: jsbsim_hw.c:35
uint8_t gps_nb_ovrn
Definition: jsbsim_hw.c:19