Bdale Garbee [Thu, 29 Jul 2010 18:47:37 +0000 (12:47 -0600)]
ugh, fixing failure due to aborted build
Bdale Garbee [Thu, 29 Jul 2010 18:45:18 +0000 (12:45 -0600)]
add swig as a build dep
Bdale Garbee [Thu, 29 Jul 2010 18:40:52 +0000 (12:40 -0600)]
update changelogs for Debian build
Bdale Garbee [Thu, 29 Jul 2010 18:40:25 +0000 (12:40 -0600)]
update changelogs for Debian build
Bdale Garbee [Thu, 29 Jul 2010 17:02:38 +0000 (11:02 -0600)]
update changelogs for Debian build
Bdale Garbee [Thu, 29 Jul 2010 17:01:21 +0000 (11:01 -0600)]
update changelogs for Debian build
Bdale Garbee [Thu, 29 Jul 2010 16:59:18 +0000 (10:59 -0600)]
update changelogs for Debian build
Keith Packard [Thu, 29 Jul 2010 04:49:23 +0000 (21:49 -0700)]
Reset GPS ready status when GPS comes unlocked on the pad
If GPS becomes unlocked, then report that in the UI and via
voice.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 Jul 2010 04:01:41 +0000 (21:01 -0700)]
altosui: report rocket ground bearing at landing only if known
if state.from_pad is null, then there isn't any data to report.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 Jul 2010 03:18:36 +0000 (20:18 -0700)]
altosui: Replace device dialog. Center eeprom monitor.
This adds a custom dialog for selecting device, which makes it look
much nicer on the screen and allows the user to double-click on an
entry to select it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 Jul 2010 02:37:02 +0000 (19:37 -0700)]
altosui: Fix Save flight data monitor layout, add cancel
Use GridBagLayout to improve the appearance of the flight data monitor
widget, add a cancel button to stop loading data (useful if the
connection is wedged).
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 29 Jul 2010 00:08:42 +0000 (17:08 -0700)]
altosui: Add progress bar for eeprom downloading status
This has a progress bar tracking the state and block count while
downloading stuff from telemetrum.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Jul 2010 22:41:34 +0000 (15:41 -0700)]
altosui: Add eeprom data capture function. No UI yet.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Jul 2010 20:29:51 +0000 (13:29 -0700)]
Merge remote branch 'keithp/macos'
Keith Packard [Wed, 28 Jul 2010 20:29:21 +0000 (13:29 -0700)]
Remove debug printf
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Jul 2010 20:10:11 +0000 (13:10 -0700)]
Add voice test command for help in adjusting volume.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Jul 2010 20:01:52 +0000 (13:01 -0700)]
Make voice and channel menus work.
Stores voice and channel data to preferences.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Jul 2010 19:24:53 +0000 (12:24 -0700)]
altosui: Catch errors opening USB devices. Limit list to relevant devices
Avoids a segfault when failing to open a device. Limit listed telemetry
devices to just TeleDongle units.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Jul 2010 18:20:22 +0000 (11:20 -0700)]
Merge branch 'macos'
Keith Packard [Wed, 28 Jul 2010 16:31:09 +0000 (09:31 -0700)]
Make ao_log_data re-entrant as it is used for both sensor and GPS logs
Because ao_log_data is called from two different threads, failing to
make it re-entrant would cause the 'log' pointer parameter to get
overwritten if another thread asked to log data while the eeprom was
busy writing out a block.
This would cause the second thread to re-writing data from the first
thread's address, but without re-checksumming the data as the checksum
is computed before the log mutex is taken.
The bug can be seen by log blocks with invalid checksums.
Here's what happens with the ao_gps_tracking_report and ao_log threads:
ao_gps_tracking_report ao_log
Writes a bunch of records
*blocks* in the eeprom flush
sets ao_log_data 'log' to global 'log'
computes checksum for 'log' block
*blocks* on ao_log_mutex
Wakes up
sets ao_log_data 'log' to 'gps_log'
writes remaining records
'gps_log' is left with svid = 0
*blocks* on ao_gps_tracking_data
writes data, reading from
the current ao_log_data 'log'
pointer which points at 'gps_log'
Making ao_log_data re-entrant fixes this by ensuring that the 'ao_log'
thread has its own copy of the ao_log_data 'log' parameter.
I made this function take an __xdata restricted pointer so that it
could be passed in the dptr register instead of needing to go on the stack.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 28 Jul 2010 02:29:38 +0000 (19:29 -0700)]
Force java source encoding to UTF-8
Keith Packard [Tue, 27 Jul 2010 22:29:28 +0000 (15:29 -0700)]
Java voice reporting cleanups.
Make sure it says something at the end of a log file replay.
Make sure it reports max speed after motor burn out, and max height
after apogee.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 27 Jul 2010 17:18:20 +0000 (10:18 -0700)]
Java clean ups -- use varargs where possible, remove AltosSerialReader
Add methods that format stuff using String.format for voice and serial
link, remove AltosSerialReader class and just embed that in the
AltosSerial class directly.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 27 Jul 2010 17:18:09 +0000 (10:18 -0700)]
Remove directories as .class file dependencies; it makes them get rebuilt all the time
Keith Packard [Tue, 27 Jul 2010 08:22:56 +0000 (01:22 -0700)]
Clean up altosui build a bit
Keith Packard [Tue, 27 Jul 2010 07:16:15 +0000 (00:16 -0700)]
Add application icons for Mac OS X
Keith Packard [Tue, 27 Jul 2010 07:11:58 +0000 (00:11 -0700)]
Add Mac OS X packaging files for altosui
Keith Packard [Tue, 27 Jul 2010 07:09:41 +0000 (00:09 -0700)]
libaltos: build fat 10.5-compatible library
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 27 Jul 2010 07:09:18 +0000 (00:09 -0700)]
libaltos: make clean remove all built files
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 27 Jul 2010 07:08:38 +0000 (00:08 -0700)]
libaltos needs -I. on all systems
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 27 Jul 2010 01:10:07 +0000 (18:10 -0700)]
Darwin doesn't have strndup.
This provides a private version of this GNU extension.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 27 Jul 2010 01:04:10 +0000 (18:04 -0700)]
Re-enable Linux support for altosui.
This steals code from cc-usbdev for scanning the USB tree and uses the
same tty code as on Darwin
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 27 Jul 2010 00:04:04 +0000 (17:04 -0700)]
Re-enable freetts
Keith Packard [Tue, 27 Jul 2010 00:03:47 +0000 (17:03 -0700)]
Present list of altos devices in nice format
Keith Packard [Mon, 26 Jul 2010 22:42:48 +0000 (15:42 -0700)]
Switch AltosUI to libaltos for device access
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 26 Jul 2010 22:41:39 +0000 (15:41 -0700)]
Add libaltos which talks to USB connected altos devices
Keith Packard [Mon, 26 Jul 2010 19:52:17 +0000 (12:52 -0700)]
When the EP0 IN buffer is full, don't panic, just skip sending another
If the host doesn't pull the IN packet out of EP0 before sending
another SETUP command along, the IN buffer will still be busy when we
try to reply to the SETUP command. While I don't quite understand why
this would ever happen, there's no need to panic about it, just drop
the reply packet on the floor.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Wed, 21 Jul 2010 20:26:36 +0000 (14:26 -0600)]
fix text since TM only has one led to blink
Bdale Garbee [Wed, 21 Jul 2010 04:24:32 +0000 (22:24 -0600)]
update changelogs for Debian build
Bdale Garbee [Wed, 21 Jul 2010 04:24:01 +0000 (22:24 -0600)]
update to latest Debian standards version
Bdale Garbee [Wed, 21 Jul 2010 04:20:08 +0000 (22:20 -0600)]
update changelogs for Debian build
Bdale Garbee [Wed, 21 Jul 2010 04:19:27 +0000 (22:19 -0600)]
reflect documentation file name change
Bdale Garbee [Wed, 21 Jul 2010 04:15:47 +0000 (22:15 -0600)]
update changelogs for Debian build
Bdale Garbee [Wed, 21 Jul 2010 04:14:27 +0000 (22:14 -0600)]
add build dep for sndfile
Bdale Garbee [Wed, 21 Jul 2010 04:10:01 +0000 (22:10 -0600)]
update changelogs for Debian build
Bdale Garbee [Wed, 21 Jul 2010 04:08:56 +0000 (22:08 -0600)]
update changelogs for Debian build
Bdale Garbee [Wed, 21 Jul 2010 04:07:22 +0000 (22:07 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Tue, 20 Jul 2010 08:12:03 +0000 (02:12 -0600)]
significant update
Keith Packard [Thu, 15 Jul 2010 02:07:02 +0000 (19:07 -0700)]
Switch DBG pins to GPIO when using any debug commands. Reboot to restore.
If you want to use TeleMetrum as a debug dongle, you need to flip the
three pins used to talk to the remote debug port from SPI mode to GPIO
mode.
This patch doesn't provide any way to get back to SPI mode, so you'll
have to reboot the TeleMetrum to write out config parameters or log
flight data after using any debug commands.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 3 Jul 2010 21:42:36 +0000 (17:42 -0400)]
Telemetry code was mis-computing RSSI
The RSSI data from the hardware reports in 1/2 dBm increments, and so
must be divided to report plain RSSI numbers.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Thu, 24 Jun 2010 19:38:23 +0000 (12:38 -0700)]
update changelogs for Debian build
Bdale Garbee [Thu, 24 Jun 2010 19:37:55 +0000 (12:37 -0700)]
update changelogs for Debian build
Keith Packard [Mon, 21 Jun 2010 22:53:33 +0000 (15:53 -0700)]
Abort any in-progress radio operation when changing radio channel
In monitor mode, the current receive operation must be aborted so that
the radio channel change can take effect without receiving a
telemetry packet on the old channel. Aborting any in-progress radio
operation will make sure that happens.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 21 Jun 2010 18:44:32 +0000 (11:44 -0700)]
ao-postflight: was walking off state.data array
Keith Packard [Thu, 17 Jun 2010 04:54:06 +0000 (21:54 -0700)]
Merge remote branch 'mjb/master'
Keith Packard [Thu, 17 Jun 2010 04:52:23 +0000 (21:52 -0700)]
Merge remote branch 'origin/master'
Keith Packard [Thu, 17 Jun 2010 04:49:43 +0000 (21:49 -0700)]
Add special code for USB panic's.
The USB system may panic if the hardware isn't ready for IN data when
the driver thinks it should be. This adds a special panic code to make
figuring this out easier.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 17 Jun 2010 04:48:04 +0000 (21:48 -0700)]
ao-view: disable radio telemetry monitoring during channel change
This makes ao-view disable the radio so that the channel change has an
immediate effect rather than waiting for a packet on the old channel.
Note that this should also be fixed in the TM code itself so that this
change wouldn't be required.
Signed-off-by: Keith Packard <keithp@keithp.com>
Mike Beattie [Thu, 17 Jun 2010 02:04:01 +0000 (14:04 +1200)]
Extension to KML output format, and minor bug fix
Extended KML output by breaking flight into coloured segments representing
flight state. Add extra statistical information to description bubbles
visible in Google Earth when clicking on links in My Places.
Fix Bugs:
* output kml to file provided as argument.
* move kml coordinate output code to take advantage of nsat calculation
* remove superfluous %9.2f format specifier from raw_file output.
Signed-off-by: Mike Beattie <mike@ethernal.org>
Bdale Garbee [Wed, 19 May 2010 05:12:45 +0000 (23:12 -0600)]
updates from Bob
Bdale Garbee [Tue, 18 May 2010 06:26:28 +0000 (00:26 -0600)]
update changelogs for Debian build
Bdale Garbee [Tue, 18 May 2010 06:26:00 +0000 (00:26 -0600)]
update changelogs for Debian build
Bdale Garbee [Tue, 18 May 2010 06:24:03 +0000 (00:24 -0600)]
merge the altusmetrum-themes package
Bdale Garbee [Tue, 18 May 2010 05:59:43 +0000 (23:59 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Tue, 18 May 2010 04:43:19 +0000 (22:43 -0600)]
merge in a derivative of Bob Finch's mere mortals guide as a getting started
chapter
Keith Packard [Tue, 18 May 2010 04:30:57 +0000 (21:30 -0700)]
Finish basic flight monitoring UI with voice using FreeTTS
This captures telemetry data to log files and presents flight status
information in audio form using FreeTTS.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Tue, 18 May 2010 02:10:46 +0000 (20:10 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Keith Packard [Mon, 17 May 2010 05:31:23 +0000 (22:31 -0700)]
Fix telemetrum.inf, tested by Adrian and Keithp
Bdale Garbee [Thu, 13 May 2010 21:37:37 +0000 (15:37 -0600)]
typo fix from Bob
Bdale Garbee [Thu, 13 May 2010 07:27:39 +0000 (01:27 -0600)]
updates from Bob
Bdale Garbee [Thu, 13 May 2010 01:54:04 +0000 (19:54 -0600)]
update changelogs for Debian build
Bdale Garbee [Thu, 13 May 2010 01:53:40 +0000 (19:53 -0600)]
lose the quotes since they apparently aren't necessary
Bdale Garbee [Wed, 12 May 2010 23:04:41 +0000 (17:04 -0600)]
update changelogs for Debian build
Bdale Garbee [Wed, 12 May 2010 23:04:13 +0000 (17:04 -0600)]
update desktop file for conformance with current standards
Bdale Garbee [Wed, 12 May 2010 22:45:00 +0000 (16:45 -0600)]
update changelogs for Debian build
Bdale Garbee [Wed, 12 May 2010 22:44:14 +0000 (16:44 -0600)]
add desktop file
Bdale Garbee [Wed, 12 May 2010 22:34:49 +0000 (16:34 -0600)]
add desktop file provided by Bob Finch
Bdale Garbee [Wed, 12 May 2010 22:28:35 +0000 (16:28 -0600)]
add initial package build scripts for Arch Linux from Bob Finch
Bdale Garbee [Sun, 9 May 2010 07:41:00 +0000 (01:41 -0600)]
lots of updates
Bdale Garbee [Thu, 6 May 2010 19:59:23 +0000 (13:59 -0600)]
update changelogs for Debian build
Bdale Garbee [Thu, 6 May 2010 19:58:31 +0000 (13:58 -0600)]
Revert "Merge remote branch 'remotes/origin/fix-reset'"
This reverts commit
314d27a73c903fef2968dabac3d5313573713460, reversing
changes made to
fa77db2ffd8a749c93767db5a6311131e00473ae.
For whatever reason, this is utterly not doing the right things today!
Bdale Garbee [Thu, 6 May 2010 18:48:00 +0000 (12:48 -0600)]
update changelogs for Debian build
Bdale Garbee [Thu, 6 May 2010 18:47:30 +0000 (12:47 -0600)]
Merge remote branch 'remotes/origin/fix-reset'
Keith Packard [Wed, 5 May 2010 19:50:39 +0000 (12:50 -0700)]
Don't change dbg clock while changing reset_n. Use 20ms everywhere
This changes the reset code to be more conservative about changing
things at the same time, and also sets all timings to 20ms to make
debugging with the scope easier.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Wed, 5 May 2010 08:34:41 +0000 (02:34 -0600)]
update changelogs for Debian build
Keith Packard [Wed, 5 May 2010 08:32:46 +0000 (01:32 -0700)]
Use ao_delay to sleep for 2 seconds instead of trying ao_sleep
ao_sleep doesn't delay for a specified time interval as much as one
might want it to.
Keith Packard [Wed, 5 May 2010 08:31:57 +0000 (01:31 -0700)]
Fix all stdio reading functions to be __critical
Oh, right SDCC has '__critical' to mark sections of code that need to
run with interrupts disabled; no need to use EA = 0 and EA = 1.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Wed, 5 May 2010 07:57:54 +0000 (01:57 -0600)]
update changelogs for Debian build
Bdale Garbee [Wed, 5 May 2010 07:57:11 +0000 (01:57 -0600)]
initial attempt at a telemetrum turn on script .. needs work
Bdale Garbee [Wed, 5 May 2010 07:56:51 +0000 (01:56 -0600)]
update changelogs for Debian build
Bdale Garbee [Wed, 5 May 2010 07:54:33 +0000 (01:54 -0600)]
update changelogs for Debian build
Keith Packard [Wed, 5 May 2010 07:44:42 +0000 (00:44 -0700)]
Disable interrupts while reading from stdin
With multiple input source support, there is a lag between asking a
device if it has data and then waiting for more data to appear. If an
interrupt signalling additional input arrives in this interval, we'll
go to sleep with input available.
This patch uses a big hammer by just disabling interrupts for the
whole process.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 5 May 2010 04:42:54 +0000 (21:42 -0700)]
Revert "Add optional 's' command to packet slave to enable/disable slave mode"
This reverts commit
e7dc7fab787df63a4de72c8450e94092eb04d7db.
This patch didn't work, and magically appears to break flashing TM
from TD.
Bdale Garbee [Thu, 29 Apr 2010 23:48:44 +0000 (17:48 -0600)]
more text created during SFO->DEN flight
Bdale Garbee [Tue, 27 Apr 2010 06:18:43 +0000 (00:18 -0600)]
update changelogs for Debian build
Bdale Garbee [Tue, 27 Apr 2010 06:17:37 +0000 (00:17 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Tue, 27 Apr 2010 06:17:15 +0000 (00:17 -0600)]
add some RF usage information from an email reply sent today, and re-indent
Keith Packard [Fri, 23 Apr 2010 20:53:25 +0000 (13:53 -0700)]
Autodetect flite voice registration function
Old versions of flite exported the function 'register_cmu_us_kal'
while new ones export 'register_cmu_us_kal16'. This patch just checks
which one is available and uses that.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 22 Apr 2010 23:25:35 +0000 (16:25 -0700)]
More ALtosUI changes
Keith Packard [Thu, 22 Apr 2010 21:53:44 +0000 (14:53 -0700)]
Add optional 's' command to packet slave to enable/disable slave mode
This option has been selected for teledongle so that you can use slave
mode and hook two teledongles together over the RF link.
Signed-off-by: Keith Packard <keithp@keithp.com>