fw/altos
5 months agoao-tools: Use array indexing instead of addition to make gcc-10 happy
Keith Packard [Fri, 17 Apr 2020 19:51:13 +0000 (12:51 -0700)]
ao-tools: Use array indexing instead of addition to make gcc-10 happy

A struct with a trailing zero-length array (for variable-length data) is
treated as a zero-sized object when doing pointer arithmetic, but treated
correctly when treated as an array. This generates a warning from gcc-10

load->data + address - load->address

while this, which is 'the same', does not:

&load->data[address - load->address]

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoStart release notes for 1.9.4
Keith Packard [Thu, 26 Mar 2020 17:09:51 +0000 (10:09 -0700)]
Start release notes for 1.9.4

6 months agoaltosui: Report baro ground alt for 'Pad Altitude' when GPS missing
Keith Packard [Thu, 26 Mar 2020 17:01:48 +0000 (10:01 -0700)]
altosui: Report baro ground alt for 'Pad Altitude' when GPS missing

The 'Pad Altitude' field in the pad tab of AltosUI was originally one
of three fields designed to report the GPS position of the pad. When
TeleMini was added, the code was updated to separate the lat/lon from
altitude display, but the pad_alt field in AltosState used for that
was still only computed from GPS data.

This fix gets rid of the confusing 'pad_alt' field in AltosState and
has the 'Pad Altitude' data select either GPS ground altitude or baro
ground altitude, depending on whether GPS data is available.

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

6 months agomap-server: Create Manifest.txt at build time
Keith Packard [Sun, 22 Mar 2020 04:13:08 +0000 (21:13 -0700)]
map-server: Create Manifest.txt at build time

This ensures the libraries have the right names

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agodoc: start release notes for 1.9.3
Keith Packard [Thu, 5 Mar 2020 02:52:35 +0000 (18:52 -0800)]
doc: start release notes for 1.9.3

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agodoc: Document APRS offset configuration value
Keith Packard [Thu, 5 Mar 2020 02:51:00 +0000 (18:51 -0800)]
doc: Document APRS offset configuration value

Update screen shots including this as well.

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoaltoslib, altosui, telegps: Add configuration support for APRS offset
Keith Packard [Thu, 5 Mar 2020 02:23:14 +0000 (18:23 -0800)]
altoslib, altosui, telegps: Add configuration support for APRS offset

Configure the position within each minute that APRS transmissions
occur

Signed-off-by: Keith Packard <keithp@keithp.com>
6 months agoaltos: add APRS 'offset' value to set APRS transmision time
Keith Packard [Thu, 5 Mar 2020 01:26:49 +0000 (17:26 -0800)]
altos: add APRS 'offset' value to set APRS transmision time

This value is the offset from the top of the minute for the first APRS
packet in the minute. Subsequent packets will be transmitted
'interval' seconds apart for the rest of the minute.

This allows multiple transmitters to be configured to share the same
frequency and not transmit at the same time.

Note that this offset only works when the device has GPS lock.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 26 Feb 2020 06:55:29 +0000 (23:55 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 months agoBump version to 1.9.2, android 27
Keith Packard [Wed, 26 Feb 2020 01:08:58 +0000 (17:08 -0800)]
Bump version to 1.9.2, android 27

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoBump java lib versions in preparation for 1.9.2
Keith Packard [Wed, 26 Feb 2020 01:07:15 +0000 (17:07 -0800)]
Bump java lib versions in preparation for 1.9.2

Quite a few changes; let's bump the version so we don't end up with
the wrong version on some machine.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agolibaltos: Create altos_pause_one_second API
Keith Packard [Wed, 26 Feb 2020 06:51:54 +0000 (22:51 -0800)]
libaltos: Create altos_pause_one_second API

This is to wait for the reading thread to stop using the file object
while cleaning up.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoupdate copyright assertion in TeleLaunch manual
Bdale Garbee [Wed, 26 Feb 2020 06:18:11 +0000 (23:18 -0700)]
update copyright assertion in TeleLaunch manual

7 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 26 Feb 2020 05:56:07 +0000 (22:56 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 months agoaltoslib: Remove debug printf from AltosIMU.java
Keith Packard [Wed, 26 Feb 2020 05:50:10 +0000 (21:50 -0800)]
altoslib: Remove debug printf from AltosIMU.java

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoBump version to 1.9.2, android 27
Keith Packard [Wed, 26 Feb 2020 01:08:58 +0000 (17:08 -0800)]
Bump version to 1.9.2, android 27

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoBump java lib versions in preparation for 1.9.2
Keith Packard [Wed, 26 Feb 2020 01:07:15 +0000 (17:07 -0800)]
Bump java lib versions in preparation for 1.9.2

Quite a few changes; let's bump the version so we don't end up with
the wrong version on some machine.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 26 Feb 2020 05:44:08 +0000 (22:44 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 months agoSet doc version and date from package version and release date
Keith Packard [Wed, 26 Feb 2020 01:24:23 +0000 (17:24 -0800)]
Set doc version and date from package version and release date

This is a bit less work than manually updating them.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoBump version to 1.9.2, android 27
Keith Packard [Wed, 26 Feb 2020 01:08:58 +0000 (17:08 -0800)]
Bump version to 1.9.2, android 27

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Add TeleMega-v4 adxl375 config to AltosConfigData
Keith Packard [Wed, 26 Feb 2020 05:42:29 +0000 (21:42 -0800)]
altoslib: Add TeleMega-v4 adxl375 config to AltosConfigData

Needed for idle monitor to work correctly

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoBump java lib versions in preparation for 1.9.2
Keith Packard [Wed, 26 Feb 2020 01:07:15 +0000 (17:07 -0800)]
Bump java lib versions in preparation for 1.9.2

Quite a few changes; let's bump the version so we don't end up with
the wrong version on some machine.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoBump version to 1.9.2, android 27
Keith Packard [Wed, 26 Feb 2020 01:08:58 +0000 (17:08 -0800)]
Bump version to 1.9.2, android 27

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoSet doc version and date from package version and release date
Keith Packard [Wed, 26 Feb 2020 01:24:23 +0000 (17:24 -0800)]
Set doc version and date from package version and release date

This is a bit less work than manually updating them.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoBump java lib versions in preparation for 1.9.2
Keith Packard [Wed, 26 Feb 2020 01:07:15 +0000 (17:07 -0800)]
Bump java lib versions in preparation for 1.9.2

Quite a few changes; let's bump the version so we don't end up with
the wrong version on some machine.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: BMX160 driver now returns µT values for mag sensor
Keith Packard [Tue, 25 Feb 2020 23:35:33 +0000 (15:35 -0800)]
altoslib: BMX160 driver now returns µT values for mag sensor

These are converted on-board using calibration values provided with
the chip.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltos/bmx160: Compute µT in bmx160 driver using trim data
Keith Packard [Tue, 25 Feb 2020 22:57:35 +0000 (14:57 -0800)]
altos/bmx160: Compute µT in bmx160 driver using trim data

Instead of attempting to ship all of the trim data, compute µT
on-board. This means losing the raw sensor values.

The compensate functions were taken from the bmm150 sample driver
provided by Bosch under the BSD 3 clause license.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltos/telemega-4.0: Fix signs of IMU pitch and mag across
Keith Packard [Tue, 25 Feb 2020 19:58:17 +0000 (11:58 -0800)]
altos/telemega-4.0: Fix signs of IMU pitch and mag across

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosuilib, altoslib: Add azimuth and compass to reports
Keith Packard [Tue, 25 Feb 2020 19:55:36 +0000 (11:55 -0800)]
altosuilib, altoslib: Add azimuth and compass to reports

Here, azimuth means change in horizontal plane from launch.
Compass is reporting mag field strength in X/Y plane

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Remove hard-coded accel scale for mega eeprom
Keith Packard [Tue, 25 Feb 2020 19:54:11 +0000 (11:54 -0800)]
altoslib: Remove hard-coded accel scale for mega eeprom

I don't know why this is using a hard-coded value which only matches
early TeleMega v1 boards.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Correct sign of telemega v4 pitch
Keith Packard [Tue, 25 Feb 2020 19:51:57 +0000 (11:51 -0800)]
altoslib: Correct sign of telemega v4 pitch

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agolibaltos: Delay freeing serial device until not busy
Keith Packard [Tue, 25 Feb 2020 19:57:21 +0000 (11:57 -0800)]
libaltos: Delay freeing serial device until not busy

Just spins for a while waiting for reading thread to wake up and
return.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Fix Tmega v4 eeprom parsing
Keith Packard [Mon, 24 Feb 2020 00:43:23 +0000 (16:43 -0800)]
altoslib: Fix Tmega v4 eeprom parsing

Mangled the source while hacking things somehow; both accel and gyro
corrupted.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltos/altoslib: BMX160 Y axis gyro direction is opposite from MPU
Keith Packard [Fri, 21 Feb 2020 08:19:25 +0000 (00:19 -0800)]
altos/altoslib: BMX160 Y axis gyro direction is opposite from MPU

Just need to flip the sign to make the values go the same direction.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltos: Adjust comment about how the BMX160 is oriented
Keith Packard [Fri, 21 Feb 2020 07:43:01 +0000 (23:43 -0800)]
altos: Adjust comment about how the BMX160 is oriented

Bdale promises to make them all the same.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoao-tools: Handle TeleMega v4.0 telemetry in ao-telem
Keith Packard [Fri, 21 Feb 2020 07:42:24 +0000 (23:42 -0800)]
ao-tools: Handle TeleMega v4.0 telemetry in ao-telem

Same packet format as older telemega, but axes differ

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Correct IMU axes for telemetry data
Keith Packard [Fri, 21 Feb 2020 07:41:27 +0000 (23:41 -0800)]
altoslib: Correct IMU axes for telemetry data

The telem data was assuming original TeleMega sensor orientation.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltos: Init BMX160 more carefully
Keith Packard [Fri, 21 Feb 2020 06:53:31 +0000 (22:53 -0800)]
altos: Init BMX160 more carefully

Check accel and gyro power status after turning them on, waiting
for a while to see if they actually power up.

Read more registers after configuring accel to try and get things
reset better.

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

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoao-tools: Add TeleMega v4.0 to ao-eeprom
Keith Packard [Fri, 21 Feb 2020 06:44:54 +0000 (22:44 -0800)]
ao-tools: Add TeleMega v4.0 to ao-eeprom

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Remove ADXL375 debug noise
Keith Packard [Fri, 21 Feb 2020 06:35:54 +0000 (22:35 -0800)]
altoslib: Remove ADXL375 debug noise

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltos: Get BMX160 initialized correctly
Keith Packard [Fri, 21 Feb 2020 00:51:15 +0000 (16:51 -0800)]
altos: Get BMX160 initialized correctly

 1. Don't reboot at startup. This probably takes a lot longer
    than 100ms.

 2. Power up acc and gyr before attempting to configure

 3. Clear data registers after setting acc range

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltos: Copy BMX160 data to data ring
Keith Packard [Fri, 21 Feb 2020 00:23:33 +0000 (16:23 -0800)]
altos: Copy BMX160 data to data ring

Otherwise you get a lot of zero

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltos: Log BMX160 data when present
Keith Packard [Fri, 21 Feb 2020 00:12:43 +0000 (16:12 -0800)]
altos: Log BMX160 data when present

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoBump version for new android upload android-26
Keith Packard [Wed, 19 Feb 2020 22:30:50 +0000 (14:30 -0800)]
Bump version for new android upload

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosuilib: Eliminate a couple java compiler warnings
Keith Packard [Wed, 19 Feb 2020 22:01:15 +0000 (14:01 -0800)]
altosuilib: Eliminate a couple java compiler warnings

Were using new Integer(int), when just passing the int would
'auto-box' as necessary.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosui: Add TeleMega v4.0 firmware to altosui packaged bits
Keith Packard [Fri, 14 Feb 2020 00:00:43 +0000 (16:00 -0800)]
altosui: Add TeleMega v4.0 firmware to altosui packaged bits

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agodoc: updates for 1.9.2
Keith Packard [Thu, 13 Feb 2020 23:59:25 +0000 (15:59 -0800)]
doc: updates for 1.9.2

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Pass all flight records while reading telem file
Keith Packard [Thu, 13 Feb 2020 23:39:08 +0000 (15:39 -0800)]
altoslib: Pass all flight records while reading telem file

This makes sure we get complete GPS and setup information before
the flight starts.

To make this work, have data skipped when building time series
instead, and have realtime replay fast-forward through the initial
data

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosuilib: Put units on GPS altitude and height in info table
Keith Packard [Thu, 13 Feb 2020 23:38:34 +0000 (15:38 -0800)]
altosuilib: Put units on GPS altitude and height in info table

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Report raw baro height instead of kalman filtered value
Keith Packard [Thu, 13 Feb 2020 23:36:57 +0000 (15:36 -0800)]
altoslib: Report raw baro height instead of kalman filtered value

Report raw sensor values to the user during flight.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Re-initialize cal data for eeprom record set
Keith Packard [Thu, 13 Feb 2020 23:06:45 +0000 (15:06 -0800)]
altoslib: Re-initialize cal data for eeprom record set

Instead of leaving it uninitialized, restore the initial data from
the flight log.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Report whether GPS data contains new location/sat info
Keith Packard [Thu, 13 Feb 2020 23:04:40 +0000 (15:04 -0800)]
altoslib: Report whether GPS data contains new location/sat info

Use this to limit time series additions to fresh data.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Move 'state_name' API to AltosCalData
Keith Packard [Thu, 13 Feb 2020 23:00:55 +0000 (15:00 -0800)]
altoslib: Move 'state_name' API to AltosCalData

That's where state lives.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoinclude TeleMega v4 in list of firmware included in fat build and LLC repo
Bdale Garbee [Thu, 13 Feb 2020 19:15:01 +0000 (12:15 -0700)]
include TeleMega v4 in list of firmware included in fat build and LLC repo

7 months agoaltoslib: Add support for TeleMega v4
Keith Packard [Thu, 13 Feb 2020 04:07:02 +0000 (20:07 -0800)]
altoslib: Add support for TeleMega v4

TeleMega v4 has a new IMU chip, which required adding support for
multiple IMU types, including different scale factors for each mag
sensor axis.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Store IMU accel ground data in converted values
Keith Packard [Thu, 13 Feb 2020 04:05:31 +0000 (20:05 -0800)]
altoslib: Store IMU accel ground data in converted values

For some reason, this value was in sensor units.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosuilib: Add fourth column to info table
Keith Packard [Thu, 13 Feb 2020 04:00:22 +0000 (20:00 -0800)]
altosuilib: Add fourth column to info table

Holds IMU data and igniter voltages

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Add 'gauss' units for magnetic field strength
Keith Packard [Thu, 13 Feb 2020 03:59:19 +0000 (19:59 -0800)]
altoslib: Add 'gauss' units for magnetic field strength

Compute in gauss, but display in nT (G * 100000)

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltos: Create new log format for TeleMega v4
Keith Packard [Wed, 12 Feb 2020 21:00:18 +0000 (13:00 -0800)]
altos: Create new log format for TeleMega v4

Has BMX160 instead of MPU9250

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltos: Add new telemetry packet format for TeleMega v4
Keith Packard [Wed, 12 Feb 2020 21:01:08 +0000 (13:01 -0800)]
altos: Add new telemetry packet format for TeleMega v4

Bmx160 instead of MPU9250 changes orientation of IMU data

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 12 Feb 2020 19:55:04 +0000 (12:55 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 months agoupdate TeleMega production scripts for v4.0
Bdale Garbee [Wed, 12 Feb 2020 19:54:38 +0000 (12:54 -0700)]
update TeleMega production scripts for v4.0

7 months agoaltos: Fix wiring mistakes for TeleMega v4.0
Keith Packard [Wed, 12 Feb 2020 19:53:25 +0000 (11:53 -0800)]
altos: Fix wiring mistakes for TeleMega v4.0

Enable SPI 1 on PB3 PB4 PB5 (just sets output pin config)
Disable I2C (we're not using)
Fix Pyro channel C port (port D, not port B)

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltoslib: Reset consecutive GPS count when GPS bad
Keith Packard [Wed, 12 Feb 2020 19:37:05 +0000 (11:37 -0800)]
altoslib: Reset consecutive GPS count when GPS bad

This makes sure we get back to 'GPS not ready' when GPS goes unlocked.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: Change layout of idle mode dialog a bit
Keith Packard [Mon, 10 Feb 2020 22:25:55 +0000 (14:25 -0800)]
altosdroid: Change layout of idle mode dialog a bit

Stick 'callsign:' label and callsign on same line. Save a bit of vertical space.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: Make frequency changes during idle mode work
Keith Packard [Mon, 10 Feb 2020 22:25:26 +0000 (14:25 -0800)]
altosdroid: Make frequency changes during idle mode work

Otherwise, we'd end up sending a freq change over the link, which
would do 'bad things'.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: Use select tracker dialog when deleting a tracker
Keith Packard [Mon, 10 Feb 2020 21:55:37 +0000 (13:55 -0800)]
altosdroid: Use select tracker dialog when deleting a tracker

Remove custom delete tracker dialog code.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoBump version to build a new android app (25) android-25
Keith Packard [Sun, 9 Feb 2020 07:59:44 +0000 (23:59 -0800)]
Bump version to build a new android app (25)

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: When the user switches frequency, look for something there
Keith Packard [Sun, 9 Feb 2020 07:55:58 +0000 (23:55 -0800)]
altosdroid: When the user switches frequency, look for something there

Instead of sticking with the original tracker serial, when the user
selects a new frequency, check to see if some data appears there and
switch to that tracker.

Only do this once, and stop looking if the user selects a tracker.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosui: Set idle mode frequency before starting link
Keith Packard [Sun, 9 Feb 2020 07:09:50 +0000 (23:09 -0800)]
altosui: Set idle mode frequency before starting link

This makes sure the link doesn't try to start at the wrong frequency.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: Add helper 'makefile'
Keith Packard [Sun, 9 Feb 2020 04:46:19 +0000 (20:46 -0800)]
altosdroid: Add helper 'makefile'

This builds the app from deep inside the source tree.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: Ignore 'build.gradle', which is built from a .in file
Keith Packard [Sun, 9 Feb 2020 04:45:50 +0000 (20:45 -0800)]
altosdroid: Ignore 'build.gradle', which is built from a .in file

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: Change tracker selection dialog
Keith Packard [Sun, 9 Feb 2020 04:44:10 +0000 (20:44 -0800)]
altosdroid: Change tracker selection dialog

Create a table of trackers and allow sorting based on each column.
When a tracker is selected, the app will not change to another tracker
automatically.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: Fix a pile of compile warnings
Keith Packard [Sun, 9 Feb 2020 04:42:11 +0000 (20:42 -0800)]
altosdroid: Fix a pile of compile warnings

This deletes code which doesn't do anything in API versions past 21 and
changes a few bits of code to use the newer supported way.

No functional changes are intended...

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: Use custom dialog themes for all dialogs
Keith Packard [Sat, 8 Feb 2020 06:00:53 +0000 (22:00 -0800)]
altosdroid: Use custom dialog themes for all dialogs

Instead of a mixture of custom application and standard dialog themes

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoBump version to build a new android app (23) android-23
Keith Packard [Sat, 8 Feb 2020 04:47:33 +0000 (20:47 -0800)]
Bump version to build a new android app (23)

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: Add text size selection
Keith Packard [Sat, 8 Feb 2020 02:44:14 +0000 (18:44 -0800)]
altosdroid: Add text size selection

Add a setup menu item to change the size of the text everywhere.
This involved re-doing the layout for most of the tabs.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoBump version to build a new android app -- 1.9.1c android-22
Keith Packard [Fri, 7 Feb 2020 07:32:24 +0000 (23:32 -0800)]
Bump version to build a new android app -- 1.9.1c

This will suffice until we ship 1.9.2

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: Check if the telem service is running when bluetooth gets enabled
Keith Packard [Fri, 7 Feb 2020 07:21:02 +0000 (23:21 -0800)]
altosdroid: Check if the telem service is running when bluetooth gets enabled

Make sure we aren't trying to send a message when the telem service is
shut down and the pointer is null.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: Request fine location permission if not already granted
Keith Packard [Fri, 7 Feb 2020 07:17:30 +0000 (23:17 -0800)]
altosdroid: Request fine location permission if not already granted

This avoids crashing if we don't have access to fine position
information.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoaltosdroid: Switch to NotificationCompat
Keith Packard [Fri, 7 Feb 2020 01:15:14 +0000 (17:15 -0800)]
altosdroid: Switch to NotificationCompat

Instead of Notification, which doesn't appear to work on older android
releases.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoUse 'must' instead of 'should' in reference to switch for pyro battery
Keith Packard [Wed, 5 Feb 2020 18:52:05 +0000 (10:52 -0800)]
Use 'must' instead of 'should' in reference to switch for pyro battery

Make this consistent with docs for other boards.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoMerge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Bdale Garbee [Wed, 5 Feb 2020 18:48:13 +0000 (11:48 -0700)]
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos

7 months agoupdate info on using separate pyro batteries to encourage including a switch
Bdale Garbee [Wed, 5 Feb 2020 18:46:36 +0000 (11:46 -0700)]
update info on using separate pyro batteries to encourage including a switch

7 months agoBump altosdroid version to 20, always build release apk altosdroid-1.9.1
Keith Packard [Tue, 28 Jan 2020 20:57:25 +0000 (12:57 -0800)]
Bump altosdroid version to 20, always build release apk

Now that altosdroid doesn't need a maps key, we can always build the
release version. New version is 20 instead of 19 because I messed up
the upload and google play store is harsh.

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoForce using opensdk-8 to build altosdroid
Keith Packard [Tue, 28 Jan 2020 20:56:27 +0000 (12:56 -0800)]
Force using opensdk-8 to build altosdroid

Current gradlew doesn't run on newer java

Signed-off-by: Keith Packard <keithp@keithp.com>
7 months agoGenerate altosdroid/app/build.gradle at configure time
Keith Packard [Tue, 28 Jan 2020 20:55:47 +0000 (12:55 -0800)]
Generate altosdroid/app/build.gradle at configure time

This file includes the release version numbers, which are set in
configure.ac.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 months agoaltos: Always start application if boot pin isn't in use
Keith Packard [Fri, 24 Jan 2020 01:40:30 +0000 (17:40 -0800)]
altos: Always start application if boot pin isn't in use

When there's no 'force boot loader' pin, jump to the application
instead of stopping in the boot loader.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 months agoaltos: Disable ao_btm debug. Avoids breaking 's' command
Keith Packard [Fri, 24 Jan 2020 01:31:13 +0000 (17:31 -0800)]
altos: Disable ao_btm debug. Avoids breaking 's' command

The 's' command is used by altoslib to get the RSSI value during
monitor idle operations. Let's avoid breaking that.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 months agoaltos: TeleMini beeper is on Tim2 CH4, not Tim3 CH4
Keith Packard [Thu, 23 Jan 2020 22:34:14 +0000 (14:34 -0800)]
altos: TeleMini beeper is on Tim2 CH4, not Tim3 CH4

This makes the beeper work.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 months agoaltos: Make debug telemini firmware a bit easier to build
Keith Packard [Thu, 23 Jan 2020 22:32:10 +0000 (14:32 -0800)]
altos: Make debug telemini firmware a bit easier to build

To enable debugging, we need to stop using the SWD GPIO pins, which
are normally used to trigger boot-time firmware behavior -- SWDIO is
used to force entry to the boot loader while SWDCLK is used to force
default frequency and callsign.

This patch makes it easy to edit ao_pins.h to disable the default
frequency option.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 months agoaltos: Use AO_TICK_TYPE/AO_TICK_SIGNED for lco/pad code
Keith Packard [Wed, 22 Jan 2020 20:41:40 +0000 (12:41 -0800)]
altos: Use AO_TICK_TYPE/AO_TICK_SIGNED for lco/pad code

Was using 16-bit types, which 'mostly' worked, except that the pad
code compared ao_time() with a 16-bit value when determining the radio
status. After the box was on for 10 minutes (timer wrapped), the RF
timeout check would always fail, so the red LED would be lit.

Signed-off-by: Keith Packard <keithp@keithp.com>
8 months agoaltos: Build TeleMega v4.0 bits
Keith Packard [Mon, 6 Jan 2020 08:18:25 +0000 (00:18 -0800)]
altos: Build TeleMega v4.0 bits

Signed-off-by: Keith Packard <keithp@keithp.com>
8 months agoaltos: Initial bits for TeleMega v4.0
Keith Packard [Mon, 6 Jan 2020 08:16:15 +0000 (00:16 -0800)]
altos: Initial bits for TeleMega v4.0

ADXL375 and BMX160 instead of MMA655x and MPU9250

Signed-off-by: Keith Packard <keithp@keithp.com>
9 months agodoc: update copyright year in footers, note need to check this doc/RELNOTEs
Bdale Garbee [Wed, 11 Dec 2019 01:17:42 +0000 (18:17 -0700)]
doc: update copyright year in footers, note need to check this doc/RELNOTEs

9 months agoReleasing: add TeleMetrum v3.0 firmware to production list
Bdale Garbee [Mon, 9 Dec 2019 10:51:02 +0000 (03:51 -0700)]
Releasing: add TeleMetrum v3.0 firmware to production list

9 months agoReleasing: capture notes from 1.9.1 release
Bdale Garbee [Fri, 6 Dec 2019 06:16:34 +0000 (23:16 -0700)]
Releasing: capture notes from 1.9.1 release

9 months agoupdate release date in all documents
Bdale Garbee [Fri, 6 Dec 2019 05:18:12 +0000 (22:18 -0700)]
update release date in all documents

9 months agostart the process of releasing 1.9.1
Bdale Garbee [Fri, 6 Dec 2019 05:15:21 +0000 (22:15 -0700)]
start the process of releasing 1.9.1

9 months agoRelease note about self-flashing on windows waiting for devices
Keith Packard [Fri, 6 Dec 2019 05:05:28 +0000 (21:05 -0800)]
Release note about self-flashing on windows waiting for devices

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