Restructure for GUI using wxWidgets

This commit is contained in:
PaulStoffregen 2016-02-16 17:19:44 -08:00
commit 85ea90d028
6 changed files with 248 additions and 126 deletions

View file

@ -22,6 +22,10 @@
#define MAGBUFFSIZEY 28
#define MAGBUFFSIZE (MAGBUFFSIZEX * MAGBUFFSIZEY)
#ifdef __cplusplus
extern "C"{
#endif
typedef struct {
float x;
float y;
@ -46,6 +50,13 @@ extern void rotate(const magdata_t *in, magdata_t *out, const float *rmatrix);
extern int open_port(const char *name);
extern void read_serial_data(void);
extern void close_port(void);
void visualize_init(void);
void display_callback(void);
void resize_callback(int width, int height);
void timer_callback(int val);
#ifdef __cplusplus
} // extern "C"
#endif
#endif