projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show speed. Format numbers. Timeout and report final status.
[fw/altos]
/
aoview
/
aoview.h
diff --git
a/aoview/aoview.h
b/aoview/aoview.h
index 7807b2facb74580de34caf70d970892a6e00e0f5..ac64833fb3e301d9ab1f27ec461da39166b207ca 100644
(file)
--- a/
aoview/aoview.h
+++ b/
aoview/aoview.h
@@
-35,6
+35,7
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
+#include <math.h>
#include <gtk/gtk.h>
#include <glade/glade.h>
#include <gtk/gtk.h>
#include <glade/glade.h>
@@
-50,7
+51,7
@@
struct usbdev {
int idVendor;
};
int idVendor;
};
-struct ao
state
{
+struct ao
data
{
char callsign[16];
int serial;
int rssi;
char callsign[16];
int serial;
int rssi;
@@
-83,9
+84,17
@@
struct aostate {
double hdop; /* unitless? */
int h_error; /* m */
int v_error; /* m */
double hdop; /* unitless? */
int h_error; /* m */
int v_error; /* m */
+};
+
+struct aostate {
+ struct aodata data;
/* derived data */
/* derived data */
+ struct aodata prev_data;
+
+ double report_time;
+
gboolean ascent; /* going up? */
int ground_altitude;
gboolean ascent; /* going up? */
int ground_altitude;
@@
-96,11
+105,16
@@
struct aostate {
double temperature;
double main_sense;
double drogue_sense;
double temperature;
double main_sense;
double drogue_sense;
+ double baro_speed;
int max_height;
double max_acceleration;
double max_speed;
int max_height;
double max_acceleration;
double max_speed;
+ double lat;
+ double lon;
+ int gps_valid;
+
double pad_lat;
double pad_lon;
double pad_alt;
double pad_lat;
double pad_lon;
double pad_alt;
@@
-112,8
+126,13
@@
struct aostate {
double distance;
double bearing;
int gps_height;
double distance;
double bearing;
int gps_height;
+
+ int speak_tick;
+ int speak_altitude;
};
};
+extern struct aostate aostate;
+
/* GPS is 'stable' when we've seen at least this many samples */
#define MIN_PAD_SAMPLES 10
/* GPS is 'stable' when we've seen at least this many samples */
#define MIN_PAD_SAMPLES 10
@@
-124,7
+143,7
@@
gboolean
aoview_monitor_connect(char *tty);
gboolean
aoview_monitor_connect(char *tty);
gboolean
-aoview_monitor_parse(char *line);
+aoview_monitor_parse(c
onst c
har *line);
void
aoview_monitor_reset(void);
void
aoview_monitor_reset(void);
@@
-162,7
+181,7
@@
void
aoview_usbdev_free(struct usbdev *usbdev);
void
aoview_usbdev_free(struct usbdev *usbdev);
void
-aoview_state_notify(struct ao
state *state
);
+aoview_state_notify(struct ao
data *data
);
void
aoview_state_new(void);
void
aoview_state_new(void);