2011-11-16 21:49:56 -04:00
|
|
|
#ifndef _DESKTOP_H
|
|
|
|
#define _DESKTOP_H
|
2011-11-07 05:52:12 -04:00
|
|
|
|
2011-11-16 21:49:56 -04:00
|
|
|
struct desktop_info {
|
2011-11-07 05:52:12 -04:00
|
|
|
bool slider; // slider switch state, True means CLI mode
|
|
|
|
struct timeval sketch_start_time;
|
2011-11-16 21:49:56 -04:00
|
|
|
bool quadcopter; // use quadcopter outputs
|
2011-11-07 05:52:12 -04:00
|
|
|
};
|
|
|
|
|
2011-11-16 21:49:56 -04:00
|
|
|
extern struct desktop_info desktop_state;
|
2011-11-07 05:52:12 -04:00
|
|
|
|
2011-10-30 03:31:16 -03:00
|
|
|
void desktop_serial_select_setup(fd_set *fds, int *fd_high);
|
2011-11-16 21:49:56 -04:00
|
|
|
void sitl_input(void);
|
|
|
|
void sitl_setup(void);
|
|
|
|
int sitl_gps_pipe(void);
|
|
|
|
ssize_t sitl_gps_read(int fd, void *buf, size_t count);
|
|
|
|
void sitl_update_compass(float heading, float roll, float pitch, float yaw);
|
|
|
|
void sitl_update_gps(float latitude, float longitude, float altitude,
|
|
|
|
float speedN, float speedE);
|
|
|
|
void sitl_update_adc(float roll, float pitch, float yaw, float airspeed);
|
|
|
|
void sitl_setup_adc(void);
|
|
|
|
void sitl_update_barometer(float altitude);
|
2011-10-30 03:31:16 -03:00
|
|
|
|
2011-11-16 21:49:56 -04:00
|
|
|
#endif
|