]>
git.gag.com Git - fw/altos/log
Keith Packard [Sat, 16 Jun 2012 05:32:10 +0000 (22:32 -0700)]
altos: Make sure cc1120 is initialized correctly at startup time
Check to make sure it pulls down MISO when CS is enabled.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 16 Jun 2012 05:31:36 +0000 (22:31 -0700)]
altos: use 'b' command for radio beep
'B' is used by the baro data dumper.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 16 Jun 2012 05:30:03 +0000 (22:30 -0700)]
altos: Fix RDF mode data rate and PKT_CFG0 value
Changes tone to the desired 1kHz frequency and ensures the PKT_CFG0
has the right value.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 16 Jun 2012 05:28:55 +0000 (22:28 -0700)]
altos: Actually write cc1120 register values
Helps to not use 'read' mode when writing.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 16 Jun 2012 05:27:48 +0000 (22:27 -0700)]
altos: Configure cc1120 frequency
Set default conversion value, and pull the selected frequency
calibration data out of the config block.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 16 Jun 2012 05:26:06 +0000 (22:26 -0700)]
Temporarily disable packet and telem on MM
While work on the radio code progresses
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 16 Jun 2012 05:23:10 +0000 (22:23 -0700)]
Allow product to override maximum number of command lists (NUM_CMDS)
Just in case some product wants to save memory, or have more.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 5 Jun 2012 22:15:25 +0000 (15:15 -0700)]
altosdroid: Add files necessary to build application
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 5 Jun 2012 03:56:25 +0000 (20:56 -0700)]
altosui: More changes to migrate code to altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 5 Jun 2012 03:55:33 +0000 (20:55 -0700)]
altosui: attempt to get ms5607 data into .mega files was misinformed
The ms5607 'p' command also means 'go into packet mode', which nicely
broke attempts to communicate with teledongle
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 5 Jun 2012 03:54:36 +0000 (20:54 -0700)]
altos: Make cc1111 products all depend on ao_arch.h and ao_arch_func.h
Ensures that files get recompiled as needed
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 5 Jun 2012 03:53:53 +0000 (20:53 -0700)]
altos: Other half of the ms5607 prom reporting patch
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 5 Jun 2012 03:53:06 +0000 (20:53 -0700)]
altos: typo in ao_monitor prevented ground station from including code
This created ground station software that couldn't actually receive
and report telemetry packets.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 5 Jun 2012 03:52:38 +0000 (20:52 -0700)]
altos: Make 'v' command dump pressure sensor ROM values
Avoids needing a new command
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 5 Jun 2012 03:51:35 +0000 (20:51 -0700)]
altos: fix test builds of non-accel flight code
Remove references to accel variables when building baro-only flight
test code.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 5 Jun 2012 03:50:10 +0000 (20:50 -0700)]
altos: Legacy telemetry needs original ADC record
The legacy telemetry packets included the raw ADC structure directly,
so make sure that doesn't change further, allowing teledongle firmware
to remain compatible with old TM firmware.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 5 Jun 2012 03:49:15 +0000 (20:49 -0700)]
altos: Remove unused AES code from teledongle and tidongle
Leave this out as neither of these products need it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 5 Jun 2012 03:47:14 +0000 (20:47 -0700)]
altos: Remove accel_ref from pre v1.1 TM firmware
V1.0 needs RAM space for flash buffer, leaving too little room for
this extra data.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 5 Jun 2012 02:28:58 +0000 (19:28 -0700)]
altos: More cleanups for moving files to altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 3 Jun 2012 02:59:40 +0000 (19:59 -0700)]
altoslib: Clean up random rebase failures
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 3 Jun 2012 02:42:47 +0000 (19:42 -0700)]
altoslib: Move new sensor library code into altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 17 Mar 2012 03:27:45 +0000 (20:27 -0700)]
Build altosdroid
Mike Beattie [Thu, 23 Feb 2012 03:43:04 +0000 (16:43 +1300)]
Add local.properties to .gitignore
Signed-off-by: Mike Beattie <mike@ethernal.org>
Mike Beattie [Thu, 23 Feb 2012 03:41:26 +0000 (16:41 +1300)]
Add TelemetryService.java and associated files
Signed-off-by: Mike Beattie <mike@ethernal.org>
Keith Packard [Thu, 23 Feb 2012 04:00:48 +0000 (17:00 +1300)]
Move altoslib sources to top dir
No sense having them live deep in the file system.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 23 Feb 2012 03:37:24 +0000 (16:37 +1300)]
Demonstrate using AltosLib from altosdroid
Get things hooked up so that we can use AltosLib functions from the
android application; it's a bit of a hack at present, but appears to
work. Some more 'official' technique would be nice...
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 22 Feb 2012 22:15:23 +0000 (11:15 +1300)]
Ignore generated altoslib files
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 22 Feb 2012 10:39:01 +0000 (23:39 +1300)]
Build Android local.properties from local.properties.in
Make sure the SDK path is set correctly
Signed-off-by: Keith Packard <keithp@keithp.com>
Mike Beattie [Wed, 22 Feb 2012 10:40:25 +0000 (23:40 +1300)]
Add $HOME/android as an SDK location
Signed-off-by: Mike Beattie <mike@ethernal.org>
Keith Packard [Fri, 13 Jan 2012 18:40:30 +0000 (10:40 -0800)]
doc: Add companion SPI message protocol doc
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 8 Jan 2012 04:56:49 +0000 (20:56 -0800)]
altosui: Clean up a few 'fat' build rules
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Jan 2012 00:30:41 +0000 (16:30 -0800)]
Add altosdroid/Makefile.am
Mike Beattie [Thu, 5 Jan 2012 05:01:44 +0000 (21:01 -0800)]
Add AltusMetrum Logo as app icon, and change app name
Signed-off-by: Mike Beattie <mike@ethernal.org>
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 5 Jan 2012 04:54:40 +0000 (20:54 -0800)]
altosdroid: build android bits when possible
Locate android sdk automatically
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 5 Jan 2012 04:33:06 +0000 (20:33 -0800)]
altosdroid: import code from mjb
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 5 Jan 2012 04:28:42 +0000 (20:28 -0800)]
altosui: Move java altoslib to top level
This will be shared with other (android) java code.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 06:43:48 +0000 (22:43 -0800)]
Add altoslib/.gitignore
Keith Packard [Tue, 3 Jan 2012 06:42:18 +0000 (22:42 -0800)]
altosui: Fix AltosTelemetryReader move
Lost the provided link value causing a crash.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 06:41:48 +0000 (22:41 -0800)]
altosui: Remove unused files
Left around from development, these aren't useful.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 06:35:41 +0000 (22:35 -0800)]
altosui: Move telemetry reader &c to altoslib
Move all of the device and file reading code into altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 06:13:38 +0000 (22:13 -0800)]
altosui: Move AltosState.java to altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 06:05:47 +0000 (22:05 -0800)]
altosui: Pull most of AltosSerial into AltosLink
Share basic command processing across java users
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 05:12:45 +0000 (21:12 -0800)]
altosui: Move AltosGreatCircle.java to altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 05:08:34 +0000 (21:08 -0800)]
altosui: Move AltosEepromTeleScience.java to altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 05:05:02 +0000 (21:05 -0800)]
altosui: Move more eeprom stuff to altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 04:57:57 +0000 (20:57 -0800)]
altosui: Move eeprom managment code to library
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 04:47:16 +0000 (20:47 -0800)]
altosui: Move AltosEepromChunk.java to lib
Also fixes install issues with split lib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 04:39:16 +0000 (20:39 -0800)]
altosui: Finish moving AltosConfigData to altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 04:34:38 +0000 (20:34 -0800)]
altosui: Move AltosConfigData.java to library
Create a new 'AltosLink' which exposes how to talk to the remote
device abstractly via 'get_reply' and 'printf' methods.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 04:32:35 +0000 (20:32 -0800)]
altosui: Add back in the split-out Altos constants as AltosLib
These were pulled out of Altos.java, but not added back to git
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 01:26:59 +0000 (17:26 -0800)]
altosui: Complete split out of separate java library
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 00:16:51 +0000 (16:16 -0800)]
altosui: Clean swing/awt bits out of altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Jan 2012 00:13:46 +0000 (16:13 -0800)]
move a file back
Keith Packard [Tue, 3 Jan 2012 00:09:29 +0000 (16:09 -0800)]
altosui: Split out lots of the altosui code to a shared library
To be shared with the Android application eventually
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 2 Jan 2012 23:45:14 +0000 (15:45 -0800)]
altosui: Split out UI-specific preferences
Prepare to create library shared with android application.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 3 Jun 2012 02:06:08 +0000 (19:06 -0700)]
altosui: Fixed width format for new IMU values.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 3 Jun 2012 00:09:00 +0000 (17:09 -0700)]
altos: Intgrate hmc5883 sensor into adc ring
Creates a task to poll the mag sensor and place the data into the
sensor data ring.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 2 Jun 2012 23:57:22 +0000 (16:57 -0700)]
altos: Get HMC5883 driver limping along
Not pushing data into the ring yet, but the chip appears to work now.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 2 Jun 2012 23:56:41 +0000 (16:56 -0700)]
altos: Reset i2c controller at boot time
In case it's wedged.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 2 Jun 2012 23:54:42 +0000 (16:54 -0700)]
altos: Fix broken EXTI edge mode selections. Clear pending exti on enable
Make sure the edge mode registers are set according to the requested
mode.
Clear any pending interrupt when enabling to avoid spurious isr call
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 2 Jun 2012 23:53:46 +0000 (16:53 -0700)]
altos: Route correct GPIO line to interrupt controller
Which GPIO a particular pin interrupt comes from is selected by the
SYSCFG EXTICR registers; set these when an exti interrupt is configured.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 2 Jun 2012 21:58:00 +0000 (14:58 -0700)]
altos: Enable some debugging during flight mode on MM
Until we've got the radio working, there's no way to see inside the MM
state without using USB. Add a diagnostic command to dump out the
internal flight state variables.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 2 Jun 2012 06:07:38 +0000 (23:07 -0700)]
altos: Add support for MegaAccel daughter card.
Switches all acceleration computation to using the MegaAccel
accelerometer to ensure support for high-g flights.
MPU6000 values continue to be logged as normal
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 2 Jun 2012 02:51:25 +0000 (19:51 -0700)]
altosui: Quick hacks to download megametrum data and convert to CSV
Very little useful data crunching is done, but at least we can save
and convert files
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 2 Jun 2012 02:35:33 +0000 (19:35 -0700)]
altos: Timers clock base depends on perhipheral bus prescalers too
For some weird reason, a non-unity perhipheral bus clock scaler
affects the base of the various timers; this left the 100Hz tick
running at 200Hz.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 2 Jun 2012 02:35:01 +0000 (19:35 -0700)]
altos: megametrum has logging
This makes sure the various other subsystems know about it, like the
'v' command.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 2 Jun 2012 02:34:17 +0000 (19:34 -0700)]
altos: add high-z accel and mag sensor to megametrum logging
These nicely fill the 32-byte sensor log record
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 2 Jun 2012 02:33:18 +0000 (19:33 -0700)]
altos: Mark full and mega logging correctly in 'v' command
Make sure megametrum reports 'log format 5'.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 May 2012 17:48:04 +0000 (11:48 -0600)]
Bump to 1.0.9.5
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 May 2012 17:47:28 +0000 (11:47 -0600)]
altos: Clear stm i2c transfer timeout alarm
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 May 2012 17:46:51 +0000 (11:46 -0600)]
altos: Remove debug printf from accel auto-cal
Otherwise, this goes way too slow
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 May 2012 17:45:53 +0000 (11:45 -0600)]
altos: Clean up ADC selection for cc1111
Depend directly on product defines instead of trying to guess
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 May 2012 17:45:30 +0000 (11:45 -0600)]
altos: All cc1111 products have a radio
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 May 2012 17:44:45 +0000 (11:44 -0600)]
altos: Shrink telemetry generation code
otherwise TM doesn't build anymore
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 May 2012 17:44:07 +0000 (11:44 -0600)]
altos: Try to get hmc5883 working
No joy yet
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 May 2012 00:23:39 +0000 (18:23 -0600)]
altos: Make teleterra v0.2 compile with new ao_data struct
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 27 May 2012 23:45:09 +0000 (17:45 -0600)]
altos: Make telepyro-v0.1 build with new ao_data struct
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 27 May 2012 23:44:01 +0000 (17:44 -0600)]
altos: Make telescience-v0.1 build with new ao_data struct
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 27 May 2012 23:31:12 +0000 (17:31 -0600)]
altos: Make telenano build with new ao_data structure
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 27 May 2012 23:29:27 +0000 (17:29 -0600)]
altos: Make stm-demo compile with new ao_data structure
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 27 May 2012 23:26:43 +0000 (17:26 -0600)]
altos: Make telemini-v1.0 compile with new ao_data structure
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 27 May 2012 23:25:17 +0000 (17:25 -0600)]
altos: Make telemetrum-v1.0 build with new ao_data structure
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 27 May 2012 23:24:09 +0000 (17:24 -0600)]
altos: Make telemetrum-v1.1 compile with new ao_data structure
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 27 May 2012 22:52:45 +0000 (16:52 -0600)]
ignore pa to altitude conversion file
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 27 May 2012 22:47:30 +0000 (16:47 -0600)]
altos: Split out mm-specific versions of sampling code
Avoid breaking telemetrum (too much) by splitting this stuff apart.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 27 May 2012 22:46:00 +0000 (16:46 -0600)]
altos: Don't start ADC ring until the other sensors have a valid value
Yes, this is still an ugly kludge, but it's easy.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 27 May 2012 22:44:38 +0000 (16:44 -0600)]
altos: Data packet tick count does not live in adc structure
It was moved to the global structure. Having two is confusing.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 26 May 2012 05:18:06 +0000 (23:18 -0600)]
Get megametrum ready to at least log flight data
Doesn't track flight state changes correctly.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 19 May 2012 04:23:47 +0000 (21:23 -0700)]
altos: Poll mpu6000 values every tick and stash them locally.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 19 May 2012 03:16:35 +0000 (20:16 -0700)]
altos: Finish ms5607 support
This has the MS5607 polling once each tick for pressure and
temperature and then saving that in a global variable. The command UI
provides for dumping the prom data so that an eeprom file can have
raw sensor data along with the conversion factors necessary to compute
useful values.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 19 May 2012 03:04:57 +0000 (20:04 -0700)]
altos: Add conversion between Pa and meters
To be used with the MS5607 which generates data in calibrated units.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 May 2012 06:14:57 +0000 (23:14 -0700)]
altos: Check MS5607 CRC. Clean up MS5607 API
It's not ready for flight yet, but at least it's sensible now.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 May 2012 06:14:14 +0000 (23:14 -0700)]
altos: Conditional byte swapping in mpu6000 driver
Only needed on LSB machines.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Wed, 16 May 2012 15:13:53 +0000 (09:13 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 16 May 2012 15:09:44 +0000 (09:09 -0600)]
build-dep on default-jdk instead of openjdk-6-jdk, closes: #655580
Keith Packard [Tue, 8 May 2012 04:53:53 +0000 (21:53 -0700)]
altosui: Try to make telem tick counts match eeprom
telem files can have an extra wrap or two of tick count if they start
recording a long time before the flight. Account for this so that the
CSV file output from each have matching tick values.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 May 2012 04:53:11 +0000 (21:53 -0700)]
altosui: Output recorded clock tick in CSV files
This allows eeprom and telem files to be correlated accurately
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 May 2012 04:52:12 +0000 (21:52 -0700)]
altos: Hacking at cc1120 driver
Still doesn't work, but this adds a ton more register definitions
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 May 2012 04:51:25 +0000 (21:51 -0700)]
altos: Get mpu6000 working
This initializes the device appropraitely, and provides a command to
dump the current values in converted form.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 May 2012 04:50:26 +0000 (21:50 -0700)]
altos: stm: pass DMA buffer index to DMA completion callback
This lets the user know which DMA has finished.
Signed-off-by: Keith Packard <keithp@keithp.com>