Use flite to announce flight state
[fw/altos] / aoview / aoview.h
index 7b5f0de5b7c5dd2ced0639032550ee4796721593..1ad9e160dd308cb478b3e5b27e8e535cbe7c974b 100644 (file)
 
 #define _GNU_SOURCE
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -70,9 +74,15 @@ struct aostate {
                int minute;
                int second;
        } gps_time;
-       double  lat;
-       double  lon;
-       int     alt;
+       double  lat;            /* degrees (+N -S) */
+       double  lon;            /* degrees (+E -W) */
+       int     alt;            /* m */
+       double  ground_speed;   /* m/s */
+       int     course;         /* degrees */
+       double  climb_rate;     /* m/s */
+       double  hdop;           /* unitless? */
+       int     h_error;        /* m */
+       int     v_error;        /* m */
 };
 
 void
@@ -178,6 +188,9 @@ aoview_file_finish(struct aoview_file *file);
 gboolean
 aoview_file_start(struct aoview_file *file);
 
+const char *
+aoview_file_name(struct aoview_file *file);
+
 void
 aoview_file_set_serial(struct aoview_file *file, int serial);
 
@@ -199,4 +212,19 @@ aoview_file_destroy(struct aoview_file *file);
 void
 aoview_file_init(GladeXML *xml);
 
+/* aoview_eeprom.c */
+
+gboolean
+aoview_eeprom_save(const char *device);
+
+void
+aoview_eeprom_init(GladeXML *xml);
+
+/* aoview_voice.c */
+void aoview_voice_open(void);
+
+void aoview_voice_close(void);
+
+void aoview_voice_speak(char *format, ...);
+
 #endif /* _AOVIEW_H_ */