]>
git.gag.com Git - fw/altos/log
Keith Packard [Tue, 12 Nov 2013 05:54:57 +0000 (14:54 +0900)]
altos: Clean up .gitignore and add a few random files
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 12 Nov 2013 05:48:21 +0000 (14:48 +0900)]
Add ublox checksum generating program
Keith Packard [Tue, 12 Nov 2013 05:45:51 +0000 (14:45 +0900)]
Ignore mac .dmg files
Keith Packard [Tue, 12 Nov 2013 05:37:57 +0000 (14:37 +0900)]
altosui, altoslib: Move eeprom download code to altoslib
This should make adding eeprom downloading to altosdroid easier
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 12 Nov 2013 05:28:30 +0000 (14:28 +0900)]
altosui: Make AltosEepromDownload not swing-dependent
Will move to altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 12 Nov 2013 05:06:20 +0000 (14:06 +0900)]
altoslib: Start moving eeprom download logic to altoslib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 12 Nov 2013 05:03:42 +0000 (14:03 +0900)]
altoslib: Raise ParseException on invalid eeprom format
Make sure the user knows when data are not downloaded successfully
because the UI doesn't understand the eeprom format.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 12 Nov 2013 05:01:55 +0000 (14:01 +0900)]
altos: Add orientation tracking to ao_flight_test
Shows calculated offset from vertical in ao_flight_test output
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 07:36:13 +0000 (00:36 -0700)]
altos: Don't hold GPS mutex while waiting for GPS data in report code
Oops. This kinda breaks anyone else waiting for GPS data
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 07:24:59 +0000 (00:24 -0700)]
altos: sample profile address range was too narrow
The range was cranked down at some point to diagnose issues within the
task scheduler. Unfortunately, that change got merged, which meant
that general profiling lost information outside of the lower 4kB of code.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:47:27 +0000 (23:47 -0700)]
altos: Make telemega v0.3 compile with new quaternion code
Adds lots more math code
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:46:54 +0000 (23:46 -0700)]
altos: Make telemega v0.1 compile with new quaternion code
Adds the necessary math code
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:45:48 +0000 (23:45 -0700)]
altos: Add orientation test when HAS_FLIGHT_DEBUG is set
This just dumps the current orientation to stdout so you can monitor
it in real time
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:44:47 +0000 (23:44 -0700)]
altos: Update quaternion tests to check vectors_to_rotation
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:42:58 +0000 (23:42 -0700)]
altos: Change ao_mpu6000_gyro arg to float
This lets callers pass more precision than just the original sensor value
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:42:26 +0000 (23:42 -0700)]
altos: Fixup for 32-bit gyro averages
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:37:55 +0000 (23:37 -0700)]
altos: Correct incremental rotation computation
Trying to compute the combined rotation by taking the x/y/z rotations
as a vector is a good approximation, but not accurate enough for our
application given the large angles we sometimes see.
Instead, use a correct-but-expensive function with a pile of
transcendental function calls. The STM32L seems to be fast enough at least...
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:35:54 +0000 (23:35 -0700)]
altos: Compute initial rotation from vertical
This initializes the rotation with the angle from vertical, rather
than simply recording the off-angle vector. Doing this allows us to
accurately track the true orientation of the rocket, instead of just
the offset from the initial non-vertical orientation.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:33:11 +0000 (23:33 -0700)]
altos: Fixup for ao_sample_orient rename
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:28:50 +0000 (23:28 -0700)]
altos: Add sinf to math code
Needed for the quaternion gyro tracking code
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:26:28 +0000 (23:26 -0700)]
altos: Keep 9 more bits of average pad IMU gyro data
This reduces the offset error by a bit, minimizing gyro drift.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:23:59 +0000 (23:23 -0700)]
altos: Rename ao_orient to ao_sample_orient
Keeps it clear where this name comes from.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:11:37 +0000 (23:11 -0700)]
altos: Add functions to init quaternions from vector pairs and euler angles
Our low sampling rate means that the "cheap" hack for
integrating quaternion rotations by using sin(x) ≃ x doesn't work, so
instead we have to compute the partial rotation the hard way.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:11:09 +0000 (23:11 -0700)]
altos: Add some comments describing quaternion multiplication
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 06:10:13 +0000 (23:10 -0700)]
altos: Mark arguments to quaternion functions as const
Lets us pass constants without the compile whinging
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 28 Oct 2013 05:44:49 +0000 (22:44 -0700)]
altos: IMU accel calibration values need to be signed
The MPU6000 reports signed values.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 25 Oct 2013 11:34:16 +0000 (04:34 -0700)]
altos: Calibrate IMU accelerometers too
Average the IMU accelerometer values pointing up and down so that we
have a zero-g offset for all three axes. This can then be used to
compute which direction the rocket is pointing while sitting on the pad.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 25 Oct 2013 11:05:09 +0000 (04:05 -0700)]
altos: Add gyro-based orientation tracking
This tracks the angle-from-vertical as an additional input to the pyro
channels.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 25 Oct 2013 11:03:39 +0000 (04:03 -0700)]
altos: Fix GPS test frameworks to handle shared ao_gps_new variable
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 25 Oct 2013 11:00:49 +0000 (04:00 -0700)]
altos: Add floating point math functions from newlib
These are all BSD licensed, so we can simply include them directly
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 15 Oct 2013 05:41:43 +0000 (22:41 -0700)]
altos: Merge GPS logging into a single function
Create a new global, ao_gps_new, which indicates new GPS position and
satellite data.
Use ao_gps_new as the new sleep/wakeup address.
Merge the separate gps position/satellite logging tasks into a single
function which waits for new data and writes out the changed values.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 15 Oct 2013 04:49:39 +0000 (21:49 -0700)]
altos: Use #define values for ublox packet types
One case was using hex values instead of the #define equivalents.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 15 Oct 2013 03:42:14 +0000 (20:42 -0700)]
altoslib,altosui: Be more robust when graphing bogus .telem files
Deal with files containing multiple serial number/flight number values
by preserving the boost_tick value across state resets.
Check for invalid state when computing actual boost time for the stats
window.
Ignore invalid speed/accel values when computing averages.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Mon, 14 Oct 2013 05:05:20 +0000 (22:05 -0700)]
altos/micropeak: Increase boost detect to 30m
This meant increasing the data buffering as well so that we could
reliably capture the flight data back to the ground, even for slow
flights.
And, with the buffer extra large, we work backwards from the current
buffer location to find the last ground location rather than working
forwards from the first buffered location. This ensures that we don't
capture noise before boost and instead capture a nice flight curve instead.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Thu, 10 Oct 2013 21:35:54 +0000 (14:35 -0700)]
updated turn-on script for telebt 1.1
Keith Packard [Thu, 10 Oct 2013 17:02:03 +0000 (10:02 -0700)]
Another try at skipping broken avr-gcc
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 10 Oct 2013 16:47:52 +0000 (09:47 -0700)]
Make sure the AVR compiler can actually link stuff
avr-gcc was broken for a while, causing all linking to fail. Check for
that and don't try to build avr bits in that case.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 10 Oct 2013 15:04:22 +0000 (08:04 -0700)]
altos: Fix stm-bringup demo build to use installed pdclib
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 10 Oct 2013 07:00:05 +0000 (00:00 -0700)]
altos: Use installed pdclib
Switch over to the installed pdclib everywhere
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 9 Oct 2013 19:04:14 +0000 (12:04 -0700)]
Bump version to 1.2.9.3
Rocketober, 2013
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 9 Oct 2013 19:06:30 +0000 (12:06 -0700)]
doc: Add easymini outline to distribution
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 9 Oct 2013 17:14:16 +0000 (10:14 -0700)]
doc: Add EasyMini outline drawing
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Wed, 9 Oct 2013 19:37:30 +0000 (12:37 -0700)]
altos: Messed up the ifeq syntax a bit so ARM bits weren't getting built
$(x) is not the same as ($x)
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 Oct 2013 17:03:50 +0000 (10:03 -0700)]
altosui: Binaries to package are only in per-product dirs now
Each cc1111 project used to stick the binary in src/, but I got rid of
that when we ended up with so much stuff in src that it was a mess.
Building the release now requires looking in the appropriate directory
for each binary to ship.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 Oct 2013 16:50:21 +0000 (09:50 -0700)]
altos: avr-gcc appears to find the loader scripts without help now
At some point, avr-gcc lost its ability to find the loader scripts
necessary to link programs. That appears to be fixed now, at least on
my machine.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 Oct 2013 16:39:29 +0000 (09:39 -0700)]
altos: Broken test for M0 compiler in src/Makefile
Was causing it to try to compiler M0 progs only when *no* compiler was found.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 Oct 2013 16:26:41 +0000 (09:26 -0700)]
Merge remote-tracking branch 'origin/master'
Signed-off-by: Keith Packard <keithp@keithp.com>
Conflicts:
configure.ac
Keith Packard [Tue, 8 Oct 2013 16:22:03 +0000 (09:22 -0700)]
Add --with parameters to configure for compiler selection
This allows the user to specify which compiler to use for each target
CPU. Also checks to make sure the arm compiler supports -m0 and -m3
cpu type flags. The build now actually uses the specified compilers too.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 Oct 2013 16:20:12 +0000 (09:20 -0700)]
altos/stm: New GAS version requires flags in APSR assignment
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 Oct 2013 05:00:15 +0000 (22:00 -0700)]
altos: Rename easymini-v0.1 to easymini-v1.0
The production boards are the same as the modified v0.1 boards
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 Oct 2013 04:53:53 +0000 (21:53 -0700)]
altos/lpc, altos/stm: ARM requires ISB after switching stack pointers
This sticks a barrier in the CPU to prevent using the wrong stack
register past the change.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 Oct 2013 04:51:30 +0000 (21:51 -0700)]
altos: Don't require an LED for ao_flight
EasyMini has no LEDs. Deal with it.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 8 Oct 2013 04:49:55 +0000 (21:49 -0700)]
Change differentiation filter constants and limits
Larger limits avoids clipping legit data. Using the same filter time
for both ascent and descent makes the results look a bit cleaner.
Signed-off-by: Keith Packard <keithp@keithp.com>
Bdale Garbee [Tue, 8 Oct 2013 03:56:46 +0000 (21:56 -0600)]
new toolchain for STM32L is in /usr/bin, not /opt/cortex/bin
Keith Packard [Thu, 19 Sep 2013 05:29:25 +0000 (00:29 -0500)]
altos: Set TeleMini v2.0 USB ID correctly
Uses 0x0027
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 19 Sep 2013 05:28:55 +0000 (00:28 -0500)]
Add TeleMini v2.0 telemetry support
Includes AltosLib and ao-telem
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 19 Sep 2013 05:26:24 +0000 (00:26 -0500)]
altoslib: Prefer averaged ground pres for ground alt computation
If ground pressure is recorded (as from an eeprom file), then prefer
that value to the average of the pre-boost ground pressures when
computing the ground altitude.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 15 Sep 2013 21:29:46 +0000 (14:29 -0700)]
altos/telemetrum-v2.0: Use red LED during boot time
If the LED is stuck on, then the board has failed to initialize,
so use red instead of green as a warning indicator.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 15 Sep 2013 21:29:09 +0000 (14:29 -0700)]
altos/telemini-v2.0: Change initialization order
Make sure busses are running before devices are initialized
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 15 Sep 2013 21:21:08 +0000 (14:21 -0700)]
altos: Stop copying cc1111 binaries to the altos/src dir
Just clutters up that directory.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 15 Sep 2013 21:13:59 +0000 (14:13 -0700)]
altos: Add nanopeak-v0.1
The same as micropeak, just a few different pins
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sun, 15 Sep 2013 21:11:50 +0000 (14:11 -0700)]
altos: Move micropeak sources around
This sticks the micropeak sources in appropriate directories, rather
than in the micropeak product directory so that they can be shared
with future micropeak-style products.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 7 Sep 2013 01:24:46 +0000 (18:24 -0700)]
altosui: Include device name in Table view
It's part of the telemetry, so we might as well display it
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Sat, 7 Sep 2013 01:23:06 +0000 (18:23 -0700)]
altoslib: TeleMetrum v2 telemetry includes computes Pa/°C, not raw values
Telemetry sends converted pressure/temp values as it doesn't include the
MS5607 calibration data.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 23:54:07 +0000 (16:54 -0700)]
altoslib: Add receiver serial to telem file names
Makes it easy to record telemetry from multiple sites and compare them later.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 23:52:51 +0000 (16:52 -0700)]
altosui: Set 'flight' value in AltosEepromMonitor window during download
This feature was lost in the AltosState updates
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 23:52:06 +0000 (16:52 -0700)]
altosui: Load Telem files in AltosDataChooser too
Telem file loading was stubbed out from AltosState changes
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 23:51:44 +0000 (16:51 -0700)]
altoslib: Add TeleMini eeprom file to Makefile.am
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 23:50:46 +0000 (16:50 -0700)]
altoslib: Lock access to AltosLink config_data
Prevents multiple callers from trying to get config data at the same
time and messing up the serial line
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 23:49:36 +0000 (16:49 -0700)]
altoslib: Set 'valid' for valid TeleMetrum eeprom download
Had separate 'tick_valid' value, which wasn't useful as the supertype
didn't look there.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 23:48:52 +0000 (16:48 -0700)]
altoslib/altosui: Add TeleMini-v1.0 eeprom support
Got lost in the AltosState transition
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 06:31:22 +0000 (23:31 -0700)]
altosui: Remove debugging printf from InfoTable
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 05:57:19 +0000 (22:57 -0700)]
altos: Set tick value in new TeleMetrum v2 sensor packets
Was getting left with the old value, which wasn't very useful
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 05:56:57 +0000 (22:56 -0700)]
ao-tools/ao-telem: Parse new TM v2 packets
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 05:56:11 +0000 (22:56 -0700)]
altosui: Fix 'Graph Flight' button in landed dialog
Telemetry file reading was broken (oops!)
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 05:55:43 +0000 (22:55 -0700)]
altoslib: Remove debug printf from AltosTelemetryMetrumSensor
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 05:55:09 +0000 (22:55 -0700)]
altoslib: Rewrite AltosTelemetryIterable
Sort while reading instead of sorting separately.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 05:54:02 +0000 (22:54 -0700)]
altoslib: Record time_change in AltosState correctly
time_change is used to make real-time playback work.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 05:53:14 +0000 (22:53 -0700)]
altoslib: Update received time when replaying flights
Received time is otherwise recorded as the time when the packets were
read from the file, which doesn't work in real-time playback
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Fri, 6 Sep 2013 05:52:22 +0000 (22:52 -0700)]
altoslib: Only open log file when both flight and serial are known
Some telemetry formats include serial and flight in different packets,
so wait for both before creating the file
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 5 Sep 2013 22:03:07 +0000 (15:03 -0700)]
altoslib: Use AltosTelemetry.parse to pull telem lines apart
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 5 Sep 2013 22:02:47 +0000 (15:02 -0700)]
altoslib: Remove more AltosRecord based files
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 5 Sep 2013 18:55:24 +0000 (11:55 -0700)]
altoslib: remove AltosRecord based eeprom code
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Thu, 5 Sep 2013 18:50:41 +0000 (11:50 -0700)]
altoslib: Remove AltosRecord-based telemetry code
All of this is now AltosState based
Signed-off-by: Keith Packard <keithp@keithp.com>
Mike Beattie [Tue, 3 Sep 2013 03:11:33 +0000 (15:11 +1200)]
altosdroid: convert rogue files to unix line endings
Signed-off-by: Mike Beattie <mike@ethernal.org>
Mike Beattie [Wed, 4 Sep 2013 15:11:42 +0000 (03:11 +1200)]
altosdroid: more updates for new AltosState
Signed-off-by: Mike Beattie <mike@ethernal.org>
Conflicts:
altosdroid/src/org/altusmetrum/AltosDroid/AltosVoice.java
Mike Beattie [Tue, 3 Sep 2013 03:10:23 +0000 (15:10 +1200)]
altosdroid: update to support new state code
Signed-off-by: Mike Beattie <mike@ethernal.org>
Conflicts:
altosdroid/src/org/altusmetrum/AltosDroid/TabAscent.java
altosdroid/src/org/altusmetrum/AltosDroid/TabDescent.java
altosdroid/src/org/altusmetrum/AltosDroid/TabPad.java
Keith Packard [Thu, 5 Sep 2013 18:33:48 +0000 (11:33 -0700)]
altoslib: Finish AltosState changes. Update version number.
Removes all of the AltosRecord bits, changes the monitor idle bits to
have per-object state updaters.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Sep 2013 23:42:42 +0000 (17:42 -0600)]
altoslib: Set measured acceleration for measured acceleration
Was setting computed acceleration even for measured data
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Sep 2013 23:42:00 +0000 (17:42 -0600)]
altoslib: Clear sat data when tick changes
Sat data comes in multiple records, but the tick is always the same,
so use that to tell when the set of sats is new
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Sep 2013 23:41:12 +0000 (17:41 -0600)]
altoslib: Start integrated value at 0 by default
Check for MISSING and start at zero in that case
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Sep 2013 23:40:04 +0000 (17:40 -0600)]
altoslib: Use first few baro samples for ground pressure on TM
TM didn't record the ground baro reading in the log file, so pull out
the first few measured baro samples and use those instead.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Sep 2013 23:38:20 +0000 (17:38 -0600)]
altoslib: Make Ascent/descent use different filter values. Always filter.
In derivative code, use a shorter filter during ascent as the baro
sensor is cleaner then. Then, make sure to always filter the values as
the very first few baro samples can be noisy, which generates a bad
starting speed.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Sep 2013 23:36:16 +0000 (17:36 -0600)]
altoslib: Remove duplicate cmd/tick from TM eeprom file code
Also replace tick setting with super call (which does that)
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Sep 2013 23:35:23 +0000 (17:35 -0600)]
altoslib: Clean up metrum eeprom file reading
Spurious tick setting, fix some local variable names
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Sep 2013 23:34:41 +0000 (17:34 -0600)]
altoslib: Correct mega/metrum eeprom years by adding 2000
The files contain a single byte for year, which is always years since 2000.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Sep 2013 23:32:37 +0000 (17:32 -0600)]
altoslib: Correct tick wrapping in eeprom file reading
Just need to signal that at least one record has been read to know
when to start checking for wrap
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Sep 2013 23:31:58 +0000 (17:31 -0600)]
altoslib: Ensure eeprom file body always exists
Create an empty list of body elements if none were read from the file
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Sep 2013 05:10:23 +0000 (23:10 -0600)]
altoslib: More AltosState hacking
EasyMini graphs are looking good now.
Signed-off-by: Keith Packard <keithp@keithp.com>
Keith Packard [Tue, 3 Sep 2013 05:08:34 +0000 (23:08 -0600)]
altos: Not all products have pins to control flash loader
TeleGPS has no exposed pins for this function
Signed-off-by: Keith Packard <keithp@keithp.com>