fw/altos
2 months agotelemega-v5.0: Add Makefiles
Keith Packard [Tue, 7 Sep 2021 06:07:24 +0000 (23:07 -0700)]
telemega-v5.0: Add Makefiles

Oops

Signed-off-by: Keith Packard <keithp@keithp.com>
2 months agoaltos: Prepare for picolibc stdio change
Keith Packard [Wed, 18 Aug 2021 03:04:08 +0000 (20:04 -0700)]
altos: Prepare for picolibc stdio change

Instead of __iob, picolibc will use stdin, stdout and stderr globals.

Signed-off-by: Keith Packard <keithp@keithp.com>
2 months agomicropeak: Show error message if USB adapter open fails
Keith Packard [Wed, 18 Aug 2021 03:02:05 +0000 (20:02 -0700)]
micropeak: Show error message if USB adapter open fails

Pop up an error dialog and *don't* show the download dialog as if the
open had worked.

Signed-off-by: Keith Packard <keithp@keithp.com>
3 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sat, 28 Aug 2021 19:16:45 +0000 (13:16 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

3 months agodoc: add mounting hole spacing information to product outlines
Bdale Garbee [Sat, 28 Aug 2021 19:16:08 +0000 (13:16 -0600)]
doc: add mounting hole spacing information to product outlines

3 months agolibaltos: Add new microchip MAC address to bluetooth map
Keith Packard [Mon, 16 Aug 2021 00:08:44 +0000 (17:08 -0700)]
libaltos: Add new microchip MAC address to bluetooth map

The new batch of BT modules use a new MAC prefix.  On Linux, also add
the RFCOMM channel discovery code in case this happens again. On
windows, suffer.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agoaltos: Change MMC5893 driver to avoid interrupts
Keith Packard [Tue, 3 Aug 2021 00:04:20 +0000 (17:04 -0700)]
altos: Change MMC5893 driver to avoid interrupts

Set the chip to sample at 200Hz and then simply read the results at
100Hz to get a reasonably recent sample. This avoids a delay at each
sample interval.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agoaltos: Add MMC5983 driver
Keith Packard [Sun, 1 Aug 2021 04:03:15 +0000 (22:03 -0600)]
altos: Add MMC5983 driver

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agoaltos: Add preliminary TeleMega v5.0 bits
Keith Packard [Sun, 1 Aug 2021 04:02:42 +0000 (22:02 -0600)]
altos: Add preliminary TeleMega v5.0 bits

Axes not checked yet.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agoao-bringup: Use ao-test-igniter voltage check feature in pyro tests
Keith Packard [Tue, 27 Jul 2021 05:13:58 +0000 (22:13 -0700)]
ao-bringup: Use ao-test-igniter voltage check feature in pyro tests

This makes sure all pyro channels are 'in range' during testing to
validate the ADC is operating nominally.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agoao-test-igniter: Also test ADC voltage for in-range of 1-4 volts
Keith Packard [Tue, 27 Jul 2021 05:03:04 +0000 (22:03 -0700)]
ao-test-igniter: Also test ADC voltage for in-range of 1-4 volts

This should catch ADC issues, like a solder bridge on the SoC.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agoaltos: Fixes for GCC 10 (-fno-common is default)
Keith Packard [Wed, 21 Jul 2021 21:26:35 +0000 (14:26 -0700)]
altos: Fixes for GCC 10 (-fno-common is default)

A couple of duplicate global definitions which GCC 10 flags

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agoao-bringup: Revert EasyMini scripts to 1.0
Keith Packard [Wed, 12 May 2021 05:27:27 +0000 (22:27 -0700)]
ao-bringup: Revert EasyMini scripts to 1.0

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agolibaltos: Use cross compilers to build libaltos for i686, amd64, aarch64, armel and...
Keith Packard [Mon, 12 Jul 2021 17:08:05 +0000 (10:08 -0700)]
libaltos: Use cross compilers to build libaltos for i686, amd64, aarch64, armel and armhf

Use current debian packages to build libraries for x86 and arm debian hosts.

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agoaltosdroid: Show altitude as well as height
Keith Packard [Mon, 12 Jul 2021 17:03:24 +0000 (10:03 -0700)]
altosdroid: Show altitude as well as height

TeleGPS is more useful with altitude

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agodoc: telemini force freq is pin 6, not 7
Keith Packard [Mon, 12 Jul 2021 17:00:30 +0000 (10:00 -0700)]
doc: telemini force freq is pin 6, not 7

Telemini debug connector has only 6 pins

Signed-off-by: Keith Packard <keithp@keithp.com>
4 months agokernel: Widen pyro time values to 32 bits
Keith Packard [Tue, 6 Jul 2021 05:52:35 +0000 (22:52 -0700)]
kernel: Widen pyro time values to 32 bits

This lets time values of greater than 327 seconds be used. 99% of this
code is to adjust existing configurations to the new structure, which is
wider than the old.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agoaltosuilib: Remove spurious message about libaltos
Keith Packard [Thu, 24 Jun 2021 04:35:07 +0000 (21:35 -0700)]
altosuilib: Remove spurious message about libaltos

Wait until we've tried all libaltos options before complaining.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agoaltosdroid: Work without GPS available
Keith Packard [Mon, 21 Jun 2021 00:06:28 +0000 (17:06 -0700)]
altosdroid: Work without GPS available

On devices without GPS receivers, use network location instead of
crashing.

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agodoc: update copyright year assertions
Bdale Garbee [Wed, 9 Jun 2021 04:51:28 +0000 (22:51 -0600)]
doc: update copyright year assertions

5 months agoVersion 1.9.7
Keith Packard [Tue, 13 Apr 2021 01:39:48 +0000 (18:39 -0700)]
Version 1.9.7

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agodoc: Update 1.9.7 release notes
Keith Packard [Wed, 19 May 2021 18:01:16 +0000 (11:01 -0700)]
doc: Update 1.9.7 release notes

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agoaltosdroid: Bump to version 29
Keith Packard [Mon, 7 Jun 2021 23:14:25 +0000 (16:14 -0700)]
altosdroid: Bump to version 29

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agoaltosdroid: Update target API to 29
Keith Packard [Sun, 16 May 2021 03:19:56 +0000 (20:19 -0700)]
altosdroid: Update target API to 29

Required by current Android store

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agoaltosdroid: Revert getResource().getColor to old API
Keith Packard [Wed, 12 May 2021 05:28:32 +0000 (22:28 -0700)]
altosdroid: Revert getResource().getColor to old API

This should keep it compatible with API version 21

Signed-off-by: Keith Packard <keithp@keithp.com>
5 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Mon, 7 Jun 2021 23:11:01 +0000 (17:11 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

6 months agoVersion 1.9.6.5
Keith Packard [Sun, 30 May 2021 22:08:25 +0000 (15:08 -0700)]
Version 1.9.6.5

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoaltoslib: Protect has_monitor_battery from unset product
Keith Packard [Wed, 19 May 2021 17:52:47 +0000 (10:52 -0700)]
altoslib: Protect has_monitor_battery from unset product

AltosDroid can query has_monitor_battery before the product data has
been set.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoaltosdroid: Don't start bluetooth if address is null
Keith Packard [Wed, 19 May 2021 17:51:44 +0000 (10:51 -0700)]
altosdroid: Don't start bluetooth if address is null

If the address.address string is null, don't bother starting the
bluetooth service.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoaltosdroid: protect USB read/write when connection is null
Keith Packard [Wed, 19 May 2021 17:50:22 +0000 (10:50 -0700)]
altosdroid: protect USB read/write when connection is null

Check to see if connection is valid before attempting to read/write to
it.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoaltosdroid: Synchronize access to the 'rockets' list for online maps
Keith Packard [Wed, 19 May 2021 17:48:58 +0000 (10:48 -0700)]
altosdroid: Synchronize access to the 'rockets' list for online maps

Online maps gets rockets added by the telem code and the same data are
used to create the maps UI. Synchronise access to that object to prevent
simutaneous operations.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoaltosdroid: Safeguard preferences code in case it's called too early
Keith Packard [Wed, 19 May 2021 17:47:37 +0000 (10:47 -0700)]
altosdroid: Safeguard preferences code in case it's called too early

Make sure there's a backend set up before accessing data as it seems
this code can be called before the preferences code is called before
the backend is created.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoaltosdroid: Skip clicks on BT device entries that are too short
Keith Packard [Wed, 19 May 2021 06:26:12 +0000 (23:26 -0700)]
altosdroid: Skip clicks on BT device entries that are too short

Maybe these are some kind of extra object? In any case, nothing that
we care about, so just ignore the click.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos tirepyro
Bdale Garbee [Wed, 19 May 2021 05:54:48 +0000 (23:54 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

6 months agoaltoslib: Fix accel value flipping for TM v3.0
Keith Packard [Wed, 19 May 2021 05:37:01 +0000 (22:37 -0700)]
altoslib: Fix accel value flipping for TM v3.0

TM v3.0 uses the same log file format value as TM v2.0 but has a
different accelerometer, which requires a different function for
inverting the raw values. Detect v2.0 devices and use the old function
for them while using the new function for all others.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoaltosuilib: Zap all flash when upgrading TeleGPS from pre-1.9.7
Keith Packard [Tue, 18 May 2021 06:09:29 +0000 (23:09 -0700)]
altosuilib: Zap all flash when upgrading TeleGPS from pre-1.9.7

Old versions of TeleGPS firmware would end up spraying log data all
over flash as they mis-computed the place to append new log data.

When the right hardware is detected, a warning dialog will pop up and,
if agreed to, the log storage flash will be completely erased before
the firmware upgrade happens.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoaltos: Simplify discovery of log end position
Keith Packard [Tue, 18 May 2021 05:38:14 +0000 (22:38 -0700)]
altos: Simplify discovery of log end position

Binary search using log block indices rather than byte positions. This
makes the code much easier to understand as there isn't a mystic modulus.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoaltos/telegps-*: Fix log end discovery at startup
Keith Packard [Tue, 18 May 2021 05:33:21 +0000 (22:33 -0700)]
altos/telegps-*: Fix log end discovery at startup

We need to find the first unwritten log block to start appending data,
but the code was actually looking for the first empty 256-byte chunk,
which meant that we'd leave a gap of erased data after the previous
log. AltosUI would stop at that point and not recover the remaining
stored data.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoao-bringup: fix easymotor script to use .bin for dfu-util
Bdale Garbee [Wed, 12 May 2021 06:27:55 +0000 (00:27 -0600)]
ao-bringup: fix easymotor script to use .bin for dfu-util

7 months agodoc: Update for 1.9.7
Keith Packard [Tue, 13 Apr 2021 01:38:50 +0000 (18:38 -0700)]
doc: Update for 1.9.7

Add release notes
Add specs for EasyMotor
Update copyright year to 2021

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoVersion 1.9.7
Keith Packard [Tue, 13 Apr 2021 01:39:48 +0000 (18:39 -0700)]
Version 1.9.7

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoao-bringup: add tools for flash/cal/test of EasyMotor v2
Bdale Garbee [Tue, 13 Apr 2021 00:36:45 +0000 (18:36 -0600)]
ao-bringup: add tools for flash/cal/test of EasyMotor v2

7 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Tue, 13 Apr 2021 00:27:17 +0000 (18:27 -0600)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 months agoao-tools: update ao-flash-stm32f0x to work with openocd in Debian unstable
Bdale Garbee [Tue, 13 Apr 2021 00:26:46 +0000 (18:26 -0600)]
ao-tools: update ao-flash-stm32f0x to work with openocd in Debian unstable

7 months agodoc: Fix typography in motortest doc
Keith Packard [Mon, 12 Apr 2021 20:04:20 +0000 (13:04 -0700)]
doc: Fix typography in motortest doc

 1. Use correct quotes.
 2. Eliminate double space after punctuation.
 3. Use elipses instead of three full stops.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltos: include EasyMotor v2 firmware in upcoming release
Bdale Garbee [Mon, 12 Apr 2021 20:02:32 +0000 (14:02 -0600)]
altos: include EasyMotor v2 firmware in upcoming release

7 months agodocs: minor text tweak in motor testing docs
Bdale Garbee [Mon, 12 Apr 2021 19:51:06 +0000 (13:51 -0600)]
docs: minor text tweak in motor testing docs

8 months agoaltoslib: Write IMU headers to CSV file when present
Keith Packard [Wed, 31 Mar 2021 16:23:14 +0000 (09:23 -0700)]
altoslib: Write IMU headers to CSV file when present

The IMU data were being written, but somehow the header was not
included.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 months agoVersion 1.9.6.4
Keith Packard [Mon, 29 Mar 2021 01:03:56 +0000 (18:03 -0700)]
Version 1.9.6.4

Signed-off-by: Keith Packard <keithp@keithp.com>
8 months agoJavaApplicationStub hacks for Big Sur tabbing mode
Keith Packard [Mon, 29 Mar 2021 01:03:03 +0000 (18:03 -0700)]
JavaApplicationStub hacks for Big Sur tabbing mode

Java does not support the 'tabbing' stuff that's in Big Sur, so
disable it.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 months agoAdd local hacks to JavaApplicationStub
Keith Packard [Sat, 27 Mar 2021 16:37:49 +0000 (09:37 -0700)]
Add local hacks to JavaApplicationStub

Fix font rendering.
Add app directory to java.library.path.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 months agoUpdate JavaApplicationStub to latest release
Keith Packard [Mon, 22 Mar 2021 07:06:14 +0000 (00:06 -0700)]
Update JavaApplicationStub to latest release

Signed-off-by: Keith Packard <keithp@keithp.com>
8 months agoAdd Mac OS X 11 support to JavaApplicationStub
Keith Packard [Mon, 22 Mar 2021 07:02:33 +0000 (00:02 -0700)]
Add Mac OS X 11 support to JavaApplicationStub

8 months agoaltosuilib: Show launch sites at all visible locations on map
Keith Packard [Mon, 22 Mar 2021 06:10:25 +0000 (23:10 -0700)]
altosuilib: Show launch sites at all visible locations on map

Take each launch site and draw it at every location on the map it
occurs (in case the map shows more than the full globe). This also
automatically handles scrolling the map more than one "rotation".

Signed-off-by: Keith Packard <keithp@keithp.com>
9 months agoVersion 1.9.6.2
Keith Packard [Sat, 27 Feb 2021 20:51:56 +0000 (12:51 -0800)]
Version 1.9.6.2

Fix micropeak Download on Mac OS X

Signed-off-by: Keith Packard <keithp@keithp.com>
9 months agoaltosui: open /Library/AltusMetrum on Mac OS X after install
Keith Packard [Sat, 27 Feb 2021 21:38:54 +0000 (13:38 -0800)]
altosui: open /Library/AltusMetrum on Mac OS X after install

This helps the user find the documentation.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 months agomicropeak: Stick docs in Doc dir on Mac OS X
Keith Packard [Sat, 27 Feb 2021 21:23:16 +0000 (13:23 -0800)]
micropeak: Stick docs in Doc dir on Mac OS X

Follows altosui and telegps installation

Signed-off-by: Keith Packard <keithp@keithp.com>
9 months agoaltosui: Show dialog box if sudo fails on Mac OS X
Keith Packard [Sat, 27 Feb 2021 21:22:39 +0000 (13:22 -0800)]
altosui: Show dialog box if sudo fails on Mac OS X

If the user types the wrong password three times, sudo will give up
and return an error.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 months agomicropeak: Use a menu for 'Download' on Mac OS X
Keith Packard [Sat, 27 Feb 2021 20:51:13 +0000 (12:51 -0800)]
micropeak: Use a menu for 'Download' on Mac OS X

Attempts to add buttons to the menu bar fail leaving no access to the
download command.

Signed-off-by: Keith Packard <keithp@keithp.com>
9 months agodoc: add motortest docs to publish targets
Bdale Garbee [Mon, 15 Feb 2021 21:27:30 +0000 (14:27 -0700)]
doc: add motortest docs to publish targets

9 months agodoc: have motortest documents actually get built by default
Bdale Garbee [Mon, 15 Feb 2021 21:25:47 +0000 (14:25 -0700)]
doc: have motortest documents actually get built by default

9 months agodoc: make doc be about motor testing in general, not just EasyMotor
Bdale Garbee [Mon, 15 Feb 2021 21:12:46 +0000 (14:12 -0700)]
doc: make doc be about motor testing in general, not just EasyMotor

10 months agodoc: add a brief note about TeleBT appearing inert until paired
Bdale Garbee [Sat, 30 Jan 2021 18:48:01 +0000 (11:48 -0700)]
doc: add a brief note about TeleBT appearing inert until paired

10 months agodoc: first draft of manual for EasyMotor
Bdale Garbee [Mon, 18 Jan 2021 02:29:28 +0000 (19:29 -0700)]
doc: first draft of manual for EasyMotor

10 months agoaltoslib: Add all known launch sites and names to map preload
Keith Packard [Fri, 4 Dec 2020 22:58:15 +0000 (14:58 -0800)]
altoslib: Add all known launch sites and names to map preload

This shows all of the known launch sites and their names in the map
preload screen.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 months agodoc: add documentation on how to re-flash a TeleMini v3 over USB
Bdale Garbee [Sat, 21 Nov 2020 18:22:01 +0000 (11:22 -0700)]
doc: add documentation on how to re-flash a TeleMini v3 over USB

12 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Sat, 21 Nov 2020 18:00:43 +0000 (11:00 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

12 months agoao-tools/ao-dump-up: Recognize MicroTest data
Keith Packard [Fri, 6 Nov 2020 05:59:27 +0000 (21:59 -0800)]
ao-tools/ao-dump-up: Recognize MicroTest data

Spit out a special message when MicroTest data is read to make testing
µPusb easier.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 months agoaltos: Add 'microtest' -- micropeak load for testing µPusb
Keith Packard [Fri, 6 Nov 2020 05:58:04 +0000 (21:58 -0800)]
altos: Add 'microtest' -- micropeak load for testing µPusb

This is custom MicroPeak firmware that just repeatedly generates
constant flight log data which can be used to validate µPusb boards.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 months agoVersion 1.9.6.1
Keith Packard [Thu, 29 Oct 2020 18:41:55 +0000 (11:41 -0700)]
Version 1.9.6.1

Intermediate release containing altoslib fixes for TeleMega v4.0 in
Antenna Down configuration.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 months agoaltoslib: Delay accel cal value adjustment until data all read
Keith Packard [Thu, 29 Oct 2020 18:40:25 +0000 (11:40 -0700)]
altoslib: Delay accel cal value adjustment until data all read

Instead of trying to compute these values as soon as the necessary
data are available, delay until all data are available as which data
are necessary depends on the target device, and some target devices
don't have some of the data values at all.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 months agoaltoslib: Fix accel inversion for TeleMega v4.0
Keith Packard [Thu, 29 Oct 2020 18:38:55 +0000 (11:38 -0700)]
altoslib: Fix accel inversion for TeleMega v4.0

TeleMega v4.0 uses the adxl375, just like EasyMega v2.0

Signed-off-by: Keith Packard <keithp@keithp.com>
12 months agoaltoslib: Avoid sending negative accel cal values to flight computer
Keith Packard [Thu, 29 Oct 2020 18:37:03 +0000 (11:37 -0700)]
altoslib: Avoid sending negative accel cal values to flight computer

Pre-1.9.7 firmware does not handle negative values. Instead, send
large positive values which will wrap around to negative values inside
the flight computer.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 months agoao-bringup: Delay before testing easymini for 0.25 seconds
Keith Packard [Wed, 28 Oct 2020 21:32:16 +0000 (14:32 -0700)]
ao-bringup: Delay before testing easymini for 0.25 seconds

EasyMini isn't quite ready to play when the USB is first detected as
the sensors haven't yet been initialized. Wait for 0.25 seconds to
give the board time to finish initializing.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 months agoaltos: Don't wait after igniter in manual mode
Keith Packard [Tue, 27 Oct 2020 04:53:54 +0000 (21:53 -0700)]
altos: Don't wait after igniter in manual mode

There's no reason to delay between igniter firings in manual mode, and
it slows down testing.

Signed-off-by: Keith Packard <keithp@keithp.com>
12 months agoput notes in Releasing about keeping doc/header.inc up to date
Bdale Garbee [Mon, 16 Nov 2020 17:50:49 +0000 (10:50 -0700)]
put notes in Releasing about keeping doc/header.inc up to date

12 months agoTeleLaunch docs should use telelaunch.txt, update copyright year, lose "draft"
Bdale Garbee [Mon, 16 Nov 2020 17:47:53 +0000 (10:47 -0700)]
TeleLaunch docs should use telelaunch.txt, update copyright year, lose "draft"

13 months agoaltoslib, altosui: Don't show apogee/main for EasyTimer Fire Igniter
Keith Packard [Sat, 24 Oct 2020 00:05:37 +0000 (17:05 -0700)]
altoslib, altosui: Don't show apogee/main for EasyTimer Fire Igniter

Don't create igniter lines for a device which doesn't have them.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltos/easytimer-v1: Switch from including adxl375 to bmx160
Keith Packard [Fri, 23 Oct 2020 23:14:13 +0000 (16:14 -0700)]
altos/easytimer-v1: Switch from including adxl375 to bmx160

These aren't really necessary at all as ao_data includes them, but
it's nice to have them listed for documentation purposes.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltos/easymotor-v2: Increase default flight log size
Keith Packard [Fri, 23 Oct 2020 23:13:47 +0000 (16:13 -0700)]
altos/easymotor-v2: Increase default flight log size

Switch to 4 flights by default, with 2MB per flight.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltosui: Match against basestations when determining remote
Keith Packard [Fri, 23 Oct 2020 23:12:36 +0000 (16:12 -0700)]
altosui: Match against basestations when determining remote

These two cases were matching against !altimeters instead, which isn't
true for EasyMotor or EasyTimer.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltoslib, altosuilib: Get Idle Monitor working with EasyTimer and EasyMotor
Keith Packard [Fri, 23 Oct 2020 23:10:43 +0000 (16:10 -0700)]
altoslib, altosuilib: Get Idle Monitor working with EasyTimer and EasyMotor

This involve splitting out the gyro and mag sensor handling from the
3-d accel stuff, displaying only information that is present. The IMU
support now allows for using the along axis as the primary
acceleration indicator. The Adxl375 now allows using all three axes as
the 3d accelerometer.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltoslib: Set all 3 axes of accel cal data when present
Keith Packard [Fri, 23 Oct 2020 23:02:07 +0000 (16:02 -0700)]
altoslib: Set all 3 axes of accel cal data when present

Use the new accel cal function in altos to set all three axes

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltos: Make accel cal take three axes when present
Keith Packard [Fri, 23 Oct 2020 23:00:01 +0000 (16:00 -0700)]
altos: Make accel cal take three axes when present

This allows AltosUI to save/restore all of the accel calibration
values instead of just the primary axis.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agolibaltos: Add windows override for EasyTimer USB ID
Keith Packard [Fri, 23 Oct 2020 03:48:26 +0000 (20:48 -0700)]
libaltos: Add windows override for EasyTimer USB ID

Windows doesn't use the product name from the device, instead it uses
whatever was in the .ini file, which was "TeleTerra" for the EasyTimer ID.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoUpdate 1.9.6 release date. Add note to Releasing about date
Keith Packard [Fri, 23 Oct 2020 03:52:03 +0000 (20:52 -0700)]
Update 1.9.6 release date. Add note to Releasing about date

Need to update the release date as well as the release version; that's
where all of the dates in the various docs comes from.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoupdate configure.ac for 1.9.6 release
Bdale Garbee [Thu, 22 Oct 2020 22:17:04 +0000 (16:17 -0600)]
update configure.ac for 1.9.6 release

13 months agodoc: Mention BMX-160 self-test fix in 1.9.6 release notes
Keith Packard [Thu, 22 Oct 2020 05:11:18 +0000 (22:11 -0700)]
doc: Mention BMX-160 self-test fix in 1.9.6 release notes

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agolibaltos: Add pre-built windows dll binaries
Keith Packard [Thu, 22 Oct 2020 05:01:47 +0000 (22:01 -0700)]
libaltos: Add pre-built windows dll binaries

Current Debian unstable builds versions that don't run on all Windows
10 machines.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agodoc: 1.9.6 release notes
Keith Packard [Thu, 22 Oct 2020 04:45:53 +0000 (21:45 -0700)]
doc: 1.9.6 release notes

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltoslib: Don't pass along GPS information when the GPS device is busted
Keith Packard [Wed, 7 Oct 2020 01:54:27 +0000 (18:54 -0700)]
altoslib: Don't pass along GPS information when the GPS device is busted

If the telemetry packet indicates that there's no functioning GPS receiver,
then don't pass along those packets so that the UI displays things more accurately.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltoslib: Add defines for EasyMotor
Keith Packard [Wed, 7 Oct 2020 01:53:38 +0000 (18:53 -0700)]
altoslib: Add defines for EasyMotor

Just USB ids and product names.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltoslib: Clip accelerometer-based speed to >= 0
Keith Packard [Sat, 17 Oct 2020 22:29:11 +0000 (15:29 -0700)]
altoslib: Clip accelerometer-based speed to >= 0

Negative vertical speeds computed by axial acceleration aren't
sensible, so just clip them to zero so that plots are more useful.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltoslib: Limit .csv file output to valid fields for EasyMotor
Keith Packard [Sat, 17 Oct 2020 03:54:32 +0000 (20:54 -0700)]
altoslib: Limit .csv file output to valid fields for EasyMotor

EasyMotor doesn't have a baro sensor, gyros, mag sensor or igniters.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltoslib: Easy Motor v2 x axis is inverted
Keith Packard [Sat, 17 Oct 2020 03:53:56 +0000 (20:53 -0700)]
altoslib: Easy Motor v2 x axis is inverted

Provide positive accel values along rocket axis

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltoslib: Correct ADXL counts_per_g
Keith Packard [Sat, 17 Oct 2020 03:52:48 +0000 (20:52 -0700)]
altoslib: Correct ADXL counts_per_g

When ADXL 375 is used as a 3d accel (as on EasyMotor), need the right
counts_per_g to do conversions.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltoslib: use motor pressure calibration data for EasyMotor
Keith Packard [Fri, 16 Oct 2020 22:30:35 +0000 (15:30 -0700)]
altoslib: use motor pressure calibration data for EasyMotor

EasyMotor stores an average sensor value for motor pressure, use that
to report pressure above that value.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltoslib: Report metric pressure in kPa instead of Pa
Keith Packard [Fri, 16 Oct 2020 22:29:12 +0000 (15:29 -0700)]
altoslib: Report metric pressure in kPa instead of Pa

Reduces the magnitude of pressure data when displayed.

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltoslib: Add EasyMotor EEPROM support
Keith Packard [Mon, 12 Oct 2020 23:48:42 +0000 (16:48 -0700)]
altoslib: Add EasyMotor EEPROM support

Signed-off-by: Keith Packard <keithp@keithp.com>
13 months agoaltosuilib: Graph motor pressure
Keith Packard [Mon, 12 Oct 2020 23:47:54 +0000 (16:47 -0700)]
altosuilib: Graph motor pressure

Use a separate axis from atmospheric pressure as the range will be
rather different.

Signed-off-by: Keith Packard <keithp@keithp.com>