diff options
Diffstat (limited to 'ao-view')
| -rw-r--r-- | ao-view/Makefile.am | 2 | ||||
| -rw-r--r-- | ao-view/ao-view.1 | 50 | ||||
| -rw-r--r-- | ao-view/aoview.glade | 1 | ||||
| -rw-r--r-- | ao-view/aoview.h | 4 | ||||
| -rw-r--r-- | ao-view/aoview_main.c | 16 | 
5 files changed, 67 insertions, 6 deletions
| diff --git a/ao-view/Makefile.am b/ao-view/Makefile.am index e0cd068c..17661c8e 100644 --- a/ao-view/Makefile.am +++ b/ao-view/Makefile.am @@ -29,5 +29,7 @@ BUILT_SOURCES = aoview_glade.h  CLEANFILES = aoview_glade.h +man_MANS=ao-view.1 +  aoview_glade.h: aoview.glade  	sed -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/"/' $< > $@ diff --git a/ao-view/ao-view.1 b/ao-view/ao-view.1 new file mode 100644 index 00000000..99834c4e --- /dev/null +++ b/ao-view/ao-view.1 @@ -0,0 +1,50 @@ +.\" +.\" Copyright © 2009 Keith Packard <keithp@keithp.com> +.\" +.\" This program is free software; you can redistribute it and/or modify +.\" it under the terms of the GNU General Public License as published by +.\" the Free Software Foundation; either version 2 of the License, or +.\" (at your option) any later version. +.\" +.\" This program is distributed in the hope that it will be useful, but +.\" WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU +.\" General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License along +.\" with this program; if not, write to the Free Software Foundation, Inc., +.\" 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +.\" +.\" +.TH AO-VIEW 1 "ao-view" "" +.SH NAME +ao-view \- Rocket flight monitor +.SH SYNOPSIS +.B "ao-view" +[\--tty \fItty-device\fP] +.SH DESCRIPTION +.I ao-view +connects to a TeleDongle or TeleMetrum device through a USB serial device. +It provides a user interface to monitor, record and review rocket flight data. +.SH OPTIONS +The usual Gtk+ command line options can be used, along with +.IP "\--tty" +This selects a target device to connect at startup time to. +The target device may also be selected through the user interface. +.SH USAGE +When connected to a TeleDongle device, ao-view turns on the radio +receiver and listens for telemetry packets. It displays the received +telemetry data, and reports flight status via voice synthesis. All +received telemetry information is recorded to a file. +.P +When connected to a TeleMetrum device, ao-view downloads the eeprom +data and stores it in a file. +.SH FILES +All data log files are recorded into a user-specified directory +(default ~/AltOS). Files are named using the current date, the serial +number of the reporting device, the flight number recorded in the data +and either '.telem' for telemetry data or '.eeprom' for eeprom data. +.SH "SEE ALSO" +ao-load(1), ao-eeprom(1) +.SH AUTHOR +Keith Packard diff --git a/ao-view/aoview.glade b/ao-view/aoview.glade index df08b83c..3481a779 100644 --- a/ao-view/aoview.glade +++ b/ao-view/aoview.glade @@ -651,7 +651,6 @@ You should have received a copy of the GNU General Public License along with AoV      <property name="type_hint">normal</property>      <property name="skip_taskbar_hint">True</property>      <property name="transient_for">aoview</property> -    <property name="has_separator">False</property>      <property name="buttons">close</property>      <property name="text">Saving EEPROM data as</property>      <property name="secondary_text"><filename></property> diff --git a/ao-view/aoview.h b/ao-view/aoview.h index 62d0640b..e8334e5b 100644 --- a/ao-view/aoview.h +++ b/ao-view/aoview.h @@ -308,4 +308,8 @@ aoview_flite_start(void);  void  aoview_flite_stop(void); +/* aoview_main.c */ + +extern char *aoview_tty; +  #endif /* _AOVIEW_H_ */ diff --git a/ao-view/aoview_main.c b/ao-view/aoview_main.c index 36a82e0e..64c1c027 100644 --- a/ao-view/aoview_main.c +++ b/ao-view/aoview_main.c @@ -32,29 +32,29 @@ static void destroy_event(GtkWidget *widget, gpointer data)  }  extern int _Xdebug; +char *aoview_tty = NULL;  int main(int argc, char **argv)  {  	GladeXML *xml = NULL;  	GtkWidget *mainwindow; -	char *device = NULL;  	GtkAboutDialog *about_dialog;  	static struct option long_options[] = { -		{ "device", 1, 0, 'd'}, +		{ "tty", 1, 0, 'T'},  		{ "sync", 0, 0, 's'},  		{ 0, 0, 0, 0 }  	};  	for (;;) {  		int c, temp; -		c = getopt_long_only(argc, argv, "sd:", long_options, &temp); +		c = getopt_long_only(argc, argv, "sT:", long_options, &temp);  		if (c == -1)  			break;  		switch (c) { -		case 'd': -			device = optarg; +		case 'T': +			aoview_tty = optarg;  			break;  		case 's':  			_Xdebug = 1; @@ -102,6 +102,12 @@ int main(int argc, char **argv)  	aoview_label_init(xml); +	if (aoview_tty) { +		if (!aoview_monitor_connect(aoview_tty)) { +			perror(aoview_tty); +			exit(1); +		} +	}  	aoview_voice_speak("rocket flight monitor ready\n");  	gtk_main(); | 
