Keith Packard [Tue, 6 Apr 2010 07:54:52 +0000 (00:54 -0700)]
serial port read function cannot be interrupted. poll every 1 second
Keith Packard [Tue, 6 Apr 2010 05:42:05 +0000 (22:42 -0700)]
Interrupt running replay thread when starting another replay
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 6 Apr 2010 05:21:46 +0000 (22:21 -0700)]
Add Linux device discovery
AltosDeviceLinux.java scans /proc to locate suitable devices. This
will be hooked up to the UI shortly.
Keith Packard [Mon, 5 Apr 2010 03:55:30 +0000 (20:55 -0700)]
Switch TeleMetrum from v0.2 to v1.0
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 5 Apr 2010 03:55:18 +0000 (20:55 -0700)]
Clean up some altosui comments
Keith Packard [Mon, 5 Apr 2010 02:54:46 +0000 (19:54 -0700)]
Don't abort the radio when enabling telemetry monitoring
If telemetry monitoring is already on, then there isn't any point, and
if it's not on, then presumably there isn't any radio work to abort.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 5 Apr 2010 02:48:50 +0000 (19:48 -0700)]
Make ao_radio_idle keep trying to get the radio to idle.
Attempting to abort a radio operation could lead to a hang if the user
of the radio jumped in and started using it again before the task
attempting to abort woke up. This change just keeps smacking the radio
until the radio goes idle long enough to detect it.
Keith Packard [Sun, 4 Apr 2010 23:32:04 +0000 (16:32 -0700)]
Use RXTX for serial comm. Add logdir preference saving
Bdale Garbee [Sat, 3 Apr 2010 14:02:44 +0000 (08:02 -0600)]
rewrite urls in docbook format
Keith Packard [Sat, 3 Apr 2010 07:02:44 +0000 (00:02 -0700)]
Make .jar file
Keith Packard [Sat, 3 Apr 2010 06:25:02 +0000 (23:25 -0700)]
Remove unused cell renderer class
Keith Packard [Sat, 3 Apr 2010 06:20:38 +0000 (23:20 -0700)]
Remove GPS data missing from skytraq. Save max height/accel/speed
Keith Packard [Sat, 3 Apr 2010 06:05:40 +0000 (23:05 -0700)]
Report current gps nsat, not last locked nsat
Keith Packard [Sat, 3 Apr 2010 06:00:30 +0000 (23:00 -0700)]
Clean up GPS data formatting
Keith Packard [Sat, 3 Apr 2010 05:47:40 +0000 (22:47 -0700)]
Fix state updates
Keith Packard [Sat, 3 Apr 2010 04:48:41 +0000 (21:48 -0700)]
Fix status update
Keith Packard [Sat, 3 Apr 2010 04:44:00 +0000 (21:44 -0700)]
Fix up table formatting
Keith Packard [Sat, 3 Apr 2010 01:10:59 +0000 (18:10 -0700)]
Display table of flight info. gps is not working yet though
Keith Packard [Fri, 2 Apr 2010 23:07:40 +0000 (16:07 -0700)]
Steal C code from ao-view
Keith Packard [Fri, 2 Apr 2010 20:37:52 +0000 (13:37 -0700)]
Add telem parsing code
Bdale Garbee [Fri, 2 Apr 2010 05:56:47 +0000 (23:56 -0600)]
crudely incorporate "day in the life" info from web page
Bdale Garbee [Fri, 2 Apr 2010 05:39:42 +0000 (23:39 -0600)]
tweak copyright assertion
Keith Packard [Fri, 2 Apr 2010 01:31:14 +0000 (18:31 -0700)]
Fix windows install file
Keith Packard [Fri, 2 Apr 2010 01:30:56 +0000 (18:30 -0700)]
Add Windows install .inf file
Keith Packard [Thu, 1 Apr 2010 06:05:03 +0000 (23:05 -0700)]
Add telemetry data parsing code
Keith Packard [Wed, 31 Mar 2010 20:49:54 +0000 (13:49 -0700)]
Start adding java-based UI
Bdale Garbee [Wed, 31 Mar 2010 05:26:35 +0000 (23:26 -0600)]
make lintian happy
Bdale Garbee [Wed, 31 Mar 2010 05:19:48 +0000 (23:19 -0600)]
update changelogs for Debian build
Bdale Garbee [Wed, 31 Mar 2010 05:19:07 +0000 (23:19 -0600)]
fix typo
Bdale Garbee [Wed, 31 Mar 2010 05:18:37 +0000 (23:18 -0600)]
update changelogs for Debian build
Bdale Garbee [Wed, 31 Mar 2010 05:15:32 +0000 (23:15 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Conflicts:
ChangeLog
Bdale Garbee [Wed, 31 Mar 2010 05:14:47 +0000 (23:14 -0600)]
update changelogs for Debian build
Bdale Garbee [Wed, 31 Mar 2010 05:11:40 +0000 (23:11 -0600)]
initial harness for documentation
Bdale Garbee [Mon, 15 Mar 2010 18:04:18 +0000 (12:04 -0600)]
move gbp.conf into debian/
Keith Packard [Fri, 12 Mar 2010 18:38:26 +0000 (10:38 -0800)]
Merge remote branch 'origin/master'
Keith Packard [Fri, 12 Mar 2010 18:37:32 +0000 (10:37 -0800)]
Document the ao-dumplog '--remote' flag for radio-link downloads
The --remote (or -R) flag uses TeleDongle to fetch data over the radio
command link from TeleMetrum. It's been there for a while, but the man
page failed to mention it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 12 Mar 2010 18:35:12 +0000 (10:35 -0800)]
Round radio calibration value instead of truncating
The radio calibration function in the bring-up code was truncating the
radio calibration value which caused the resulting frequency to
always measure above the target frequency, instead of trying to get as
close as possible. This change will result in a closer frequency
match, but may sometimes be below the target frequency.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Sat, 6 Mar 2010 03:11:11 +0000 (19:11 -0800)]
update changelogs for Debian build
Bdale Garbee [Fri, 5 Mar 2010 00:33:39 +0000 (17:33 -0700)]
update changelogs for Debian build
Keith Packard [Mon, 1 Mar 2010 02:24:46 +0000 (18:24 -0800)]
Need to duplicate new altitude conversion code in aoview.
Altitude conversion is now done with a smaller table and interpolation
instead of a giant table.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Sun, 28 Feb 2010 00:36:13 +0000 (17:36 -0700)]
update changelogs for Debian build
Keith Packard [Sat, 27 Feb 2010 23:19:33 +0000 (15:19 -0800)]
Merge remote branch 'origin/master'
Keith Packard [Sat, 27 Feb 2010 23:18:47 +0000 (15:18 -0800)]
Add .gitignore for ao-bringup
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 27 Feb 2010 23:14:04 +0000 (15:14 -0800)]
Fix up LED colors for each product.
Different products assign different color LEDs to the two available
LED drivers (P1_0, P1_1). Make the LED color pin assignments
per-product (in ao_pins.h), then deal with not always having a green LED.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 27 Feb 2010 23:11:44 +0000 (15:11 -0800)]
Eliminate deadlock when writing config from radio link
Writing the 'Saved\r\n' string would fill the packet buffer and cause
a flush to occur, which would need to wait for the radio link to
receive and transmit a packet. The radio link always re-fetches the
radio channel number when lighting up the radio, so it need to look in
the config space. If the config mutex was held by the config writing
process while the radio was trying to get the channel number, then
we'd get a deadlock.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 27 Feb 2010 23:10:16 +0000 (15:10 -0800)]
Leave .ihx files in the build directory too - easier to debug that way
sdcdb wants the .ihx and .cdb files in the same directory, so humor it
by copying the .ihx files to the src directory instead of moving them.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Fri, 26 Feb 2010 22:21:12 +0000 (15:21 -0700)]
create a turn on script for lighting up TeleDongle v0.2 boards
Keith Packard [Fri, 26 Feb 2010 18:33:13 +0000 (10:33 -0800)]
Add LED test
Keith Packard [Fri, 26 Feb 2010 00:40:13 +0000 (16:40 -0800)]
Fix and document the ao-rawload --run flag
This allows ram-based programs to be loaded and executed easily.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 26 Feb 2010 00:33:34 +0000 (16:33 -0800)]
Allow product names to have suffixes (like board revisions)
When looking for a board by product name, just look at the prefix of
the name instead of requiring an exact match. This will allow products
to have board version suffixes.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 26 Feb 2010 00:32:57 +0000 (16:32 -0800)]
Add ao_radio_xmit to help test boards without flashing them.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Thu, 25 Feb 2010 00:30:23 +0000 (17:30 -0700)]
update changelogs for Debian build
Bdale Garbee [Thu, 25 Feb 2010 00:29:47 +0000 (17:29 -0700)]
un-muck changelog
Bdale Garbee [Thu, 25 Feb 2010 00:27:51 +0000 (17:27 -0700)]
debugging
Bdale Garbee [Thu, 25 Feb 2010 00:25:28 +0000 (17:25 -0700)]
conditionalize use of git on executability of /usr/bin/git binary
Bdale Garbee [Thu, 25 Feb 2010 00:22:45 +0000 (17:22 -0700)]
update changelogs for Debian build
Bdale Garbee [Thu, 25 Feb 2010 00:22:20 +0000 (17:22 -0700)]
see if this works
Bdale Garbee [Thu, 25 Feb 2010 00:13:29 +0000 (17:13 -0700)]
move git-using variable declaration into the prebuild target
Bdale Garbee [Wed, 24 Feb 2010 23:44:44 +0000 (16:44 -0700)]
update changelogs for Debian build
Bdale Garbee [Wed, 24 Feb 2010 23:43:32 +0000 (16:43 -0700)]
add gawk as a build dependency since strtonum is a gawk extension
Bdale Garbee [Wed, 24 Feb 2010 21:57:26 +0000 (14:57 -0700)]
update changelogs for Debian build
Bdale Garbee [Wed, 24 Feb 2010 21:53:27 +0000 (14:53 -0700)]
update changelogs for Debian build
Keith Packard [Sun, 21 Feb 2010 05:35:43 +0000 (21:35 -0800)]
Must install .map files for ao-load to work
ao-load uses the .map files to rewrite the serial number and other
config parameters into the program flash.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 21 Feb 2010 05:20:05 +0000 (21:20 -0800)]
Add back stack size checking to altos linking phase
This verifies that the stack start specified during the compile
will work with the resulting program
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 21 Feb 2010 05:05:45 +0000 (21:05 -0800)]
Quiet make output.
This borrows ideas from the notmuch project to reduce the command line
clutter seen when compiling or linking stuff.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 21 Feb 2010 04:36:08 +0000 (20:36 -0800)]
Update .gitignore files
Keith Packard [Sun, 21 Feb 2010 04:22:16 +0000 (20:22 -0800)]
Change altos build process to support per-product compile-time changes
This creates per-product subdirectories and recompiles everything for
each product, allowing per-product compile-time changes for things
like peripheral pin assignments and attached serial devices.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 21 Feb 2010 04:21:07 +0000 (20:21 -0800)]
Change barometer conversion code to shrink conversion table
Keith Packard [Sun, 14 Feb 2010 00:42:27 +0000 (16:42 -0800)]
Log GPS data on pad after boost detect.
This wakes up the two GPS reporting tasks and gets them to report out
any existing GPS data to the log file. To make sure the timestamps in
that GPS data are accurate, this also records GPS time on receipt of
the GPS data instead of when that is logged.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 7 Feb 2010 08:25:22 +0000 (00:25 -0800)]
Pull in a bit more data for filtering the start of the boost
Keith Packard [Sun, 7 Feb 2010 08:24:56 +0000 (00:24 -0800)]
Compute daytime using GPS as time base
Keith Packard [Fri, 12 Feb 2010 02:48:56 +0000 (18:48 -0800)]
Missing ao_mutex_put in gps_dump
Keith Packard [Mon, 11 Jan 2010 00:31:50 +0000 (16:31 -0800)]
Switch to using internal cc1111 temperature sensor
v0.2 has no temperature sensor, and several of the v0.1 boards didn't
get a temperature sensor loaded. Use the internal temperature sensor
on the cc1111 in all cases instead.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 10 Jan 2010 06:06:19 +0000 (22:06 -0800)]
Force idle mode by shorting the SPI clock to ground at boot time.
This allows you to override the flight mode detection code in case the
accelerometer calibration is broken somehow. Hold the SPI clock shoted
to ground until the LED comes on, then remove it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 10 Jan 2010 04:57:48 +0000 (20:57 -0800)]
Add simple gps dump command 'g'
This just dumps out the data in a very simple format to verify the GPS
receiver.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 10 Jan 2010 04:57:29 +0000 (20:57 -0800)]
Remove flash debugging printfs
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 10 Jan 2010 04:42:57 +0000 (20:42 -0800)]
Don't set ao_flash_setup_done until we're actually done.
Because we're accessing this variable outside of the mutex, we need to
make sure it isn't set until the data it covers has been initialized.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 10 Jan 2010 04:04:42 +0000 (20:04 -0800)]
Dump config block from read/write config and flash_status commands
Keith Packard [Sun, 10 Jan 2010 03:46:46 +0000 (19:46 -0800)]
Dump more flash parameters for the flash_status command
Keith Packard [Sun, 10 Jan 2010 01:57:52 +0000 (17:57 -0800)]
Add 'f' command to display flash status register contents
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 9 Jan 2010 17:55:04 +0000 (09:55 -0800)]
Add at45db161d.h header file for new flash part.
Forgot to add this when I added the driver.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 9 Jan 2010 09:29:41 +0000 (01:29 -0800)]
Remove green LED and temp sensor from v0.2 code
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 9 Jan 2010 09:22:06 +0000 (01:22 -0800)]
Add AT45DBxx1D driver
This driver supports the AT45DB011D through AT45DB321D DataFlash
parts as found in TeleMetrum v0.2
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 20 Dec 2009 04:32:18 +0000 (20:32 -0800)]
Remove dbg driver code from telemetrum/teledongle
The only board with debug outputs is the TI dongle at this point, so
the debug modules were disabled in TM and TD some time
ago. Unfortunately, the code was not removed then.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 19 Dec 2009 23:31:36 +0000 (15:31 -0800)]
Ensure that ao_alarm waits at least the specified time
Because the timer tick may happen soon, it's important to delay by
another tick to ensure that we don't wake up early.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 19 Dec 2009 22:03:11 +0000 (14:03 -0800)]
Disable monitor mode before attempting radio test.
If monitor mode is left active, then the radio lock will not be able
to be acquired for the radio test.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Sat, 19 Dec 2009 20:53:38 +0000 (13:53 -0700)]
update changelogs for Debian build
Keith Packard [Sat, 19 Dec 2009 19:34:16 +0000 (11:34 -0800)]
Use ao_radio_get/ao_radio_put in packet code.
The ao_radio_get function both acquires the mutex *and* configures the
radio channel and frequency. Failing to use this in the packet code
would leave the radio frequency unconfigured.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Sat, 19 Dec 2009 19:15:29 +0000 (12:15 -0700)]
update changelogs for Debian build
Bdale Garbee [Sat, 19 Dec 2009 19:05:40 +0000 (12:05 -0700)]
update changelogs for Debian build
Keith Packard [Wed, 16 Dec 2009 07:58:29 +0000 (23:58 -0800)]
Add --cal to man page
Keith Packard [Sun, 6 Dec 2009 03:50:38 +0000 (19:50 -0800)]
Allow radio calibration to be set from ao-load
This moves the initial radio calibration value into const memory where
it will be used if no eeprom configuration value is available, either
on an unprogrammed board with eeprom or a device without an eeprom.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 5 Dec 2009 23:36:12 +0000 (15:36 -0800)]
Re-order config values. Change frequency to cal
Place more often used values at top, and consistently call the radio
value 'calibration' instead of 'frequency'.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Sat, 5 Dec 2009 18:03:42 +0000 (11:03 -0700)]
update changelogs for Debian build
Keith Packard [Sat, 5 Dec 2009 07:38:26 +0000 (23:38 -0800)]
Add radio calibration configuration.
The crystal we use is only good for 20ppm, which generates a fairly
significant error bounds at our RF frequency. This commit adds a
configuration variable that sets the RF frequency control variable so
that the output frequency can be adjusted.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 5 Dec 2009 07:36:54 +0000 (23:36 -0800)]
Make ao_cmd_decimal produce both 32 and 16 bit values.
ao_cmd_lex_u32 is produced in addition to ao_cmd_lex_i so that
functions can easily read 32-bit values from the command line.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 5 Dec 2009 07:35:40 +0000 (23:35 -0800)]
Remove send_serial and serial_baud commands.
No longer useful, and they take up space.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Sat, 5 Dec 2009 04:02:07 +0000 (21:02 -0700)]
update changelogs for Debian build
Keith Packard [Fri, 4 Dec 2009 22:35:39 +0000 (14:35 -0800)]
Change default callsign to "N0CALL"
Bdale Garbee [Thu, 26 Nov 2009 18:18:37 +0000 (11:18 -0700)]
update changelogs for Debian build