summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* altos-mapd: Handle clients failing to send valid JSONKeith Packard2018-10-07
| | | | | | Just bail if the data we receive doesn't generate a json value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: InputEvent.getModifiers is deprecated, use getModifiersExKeith Packard2018-10-07
| | | | | | Some java change; seems like it's a no-op for us. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/altosdroid: Disable offline map type selectionsKeith Packard2018-10-07
| | | | | | | Our server only supports hybrid maps for now. If that changes, we can re-add this support easily enough. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Remove GrabNDrag.javaKeith Packard2018-10-07
| | | | | | This isn't used anymore. Signed-off-by: Keith Packard <keithp@keithp.com>
* map-server: Implement altos-map in CKeith Packard2018-10-07
| | | | | | | This app is all about startup time, and java starts slowly. Re-implement in C to improve server performance. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Restore google maps key settingKeith Packard2018-10-06
| | | | | | Only for altosdroid, and use a key restricted to our app Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Set offline map scale to 1Keith Packard2018-10-06
| | | | | | Offline maps only supports scale 1 now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-mapd: Install systemd service file and defaults fileKeith Packard2018-10-06
| | | | | | This lets the map service 'just work' if enabled. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-map: Support version query from applicationKeith Packard2018-10-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Fix offline map messages to match new meaningsKeith Packard2018-10-06
| | | | | | forbidden means outside of launch area. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Retry map connections 10 times on network failureKeith Packard2018-10-06
| | | | | | This covers a host of problems between the application and google maps. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Fix offline map messages to match new meaningsKeith Packard2018-10-06
| | | | | | forbidden means outside of launch area. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Change map loading to lat=&lon= from center=Keith Packard2018-10-06
| | | | | | This is easier to parse. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use https for launch-sites.txtKeith Packard2018-10-06
| | | | | | http causes a redirect, which Java doesn't handle Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-mapd: Install altosmapd.jar fileKeith Packard2018-10-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-mapd: Make cache service listen queue longerKeith Packard2018-10-06
| | | | | | Just in case the service gets busy, make the listen queue longer. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-mapd: Clean up log messagesKeith Packard2018-10-06
| | | | | | | Generate a single log message per request with remote address, parameters and result code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-mapd: remove debug printfKeith Packard2018-10-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-map: Retry connection to cache serviceKeith Packard2018-10-06
| | | | | | | Just in case the cache service gets busy, retry the connection instead of immediately failing. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-mapd: Add geo-fencing for map requests. Add port and key argumentsKeith Packard2018-10-06
| | | | | | | | | | | | Map requests are now limited to a region within 17km of any registered launch site. The --port argument allows the listen port to be changed. The --key argument provides the name of a file containing the Google maps API key. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Switch to maps.altusmetrum.org when no google map key is availableKeith Packard2018-10-06
| | | | | | | The map key is only usable from maps.altusmetrum.org at this point, and that service will be proxying for everyone in the near future. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Allow launch site URL to be overridden at runtimeKeith Packard2018-10-06
| | | | | | | Expose a public variable, AltosLaunchSites.launch_sites_url, that will be used in place of the environment variable or pre-defined value. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altosBdale Garbee2018-10-06
|\
| * doc: Make use of 'faketime' configurable with configure.ac. Default to 'no'Keith Packard2018-10-06
| | | | | | | | | | | | | | This ensures that older a2x versions don't simply wedge while building the docs. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos-mapd: Use command line to pass map directory inKeith Packard2018-10-06
| | | | | | | | | | | | Don't bother with a default value, just require a command line param. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos-map: Install .jar file for altos-mapKeith Packard2018-10-06
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos-map: Fix altos-map HTTP syntaxKeith Packard2018-10-06
| | | | | | | | | | | | | | Add blank line between header and content. Make error pages have actual HTML content. Signed-off-by: Keith Packard <keithp@keithp.com>
| * map-server: Add maps proxy serverKeith Packard2018-10-06
| | | | | | | | | | | | This creates a map proxy server to handle the new Google Maps API requirements Signed-off-by: Keith Packard <keithp@keithp.com>
* | altoslib: update launch-sites.txt location to new home at maps.altusmetrum.orgBdale Garbee2018-10-06
|/
* Add map-loading documentationKeith Packard2018-10-06
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Use RELEASE_DATE to set PDF timestamps using faketimeKeith Packard2018-10-05
| | | | | | | This ensures that the generated PDF files do not depend on the time of the build and only on the date of the release. Signed-off-by: Keith Packard <keithp@keithp.com>
* macosx: Ship install-macosx script with all apps.Keith Packard2018-10-05
| | | | | | | This script copies all files to ~/Applications/AltOS, then it deletes all xattrs on all files so that OS X will run the java programs. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Add check for new hardware in specs.incKeith Packard2018-10-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Update for 1.8.7Keith Packard2018-10-05
| | | | | | | Release notes Add HW specs for EasyMini v2.0 and TeleMega v3.0 Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Force telemetry rate to 38400 when ao_force_freq is setKeith Packard2018-10-04
| | | | | | | | ao_force_freq is used by TeleMini to set the radio to known values. As TeleMini v3.0 also has configurable telemetry rates, this value also needs to be set back to a known value. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Describe Packet Link mode in the initial usage sectionKeith Packard2018-10-04
| | | | | | It's not described in any detail elsewhere... Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Describe Packet Link usage and selecting RF param defaults for TeleMiniKeith Packard2018-10-04
| | | | | | | | | | | | Packet Link mode is the only communication method available for TeleMini and deserves some special mention in the docs. TeleMini allows forcing of RF parameters back to known defaults by hooking SWCLK to ground at power on (hole 7 to hole 3 on the debug connector). Describe this process so that users will be able to get TeleMini back to known values and recover. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add missing AltosUnitInfo filesKeith Packard2018-10-04
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix gyro headings in CSV filesKeith Packard2018-10-03
| | | | | | Use yaw/pitch/roll instead of x/y/z Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup: Add 'fix-telebt' to reflash TeleBT v4.0 with correct rf calKeith Packard2018-10-02
| | | | | | Fetches RF calibration value from the net and applies that when reflashing. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Fetch RF calibration value for TBT v4.0 units from webKeith Packard2018-10-02
| | | | | | | | | | We shipped a pile of TBT v4.0 units without programming the RF calibration value into flash. This change checks to see if the target is in the right serial number range and has the default RF calibration value, in which case it fetches the RF calibration value from our web site. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: sdcc doesn't have 'false' and 'true'.Keith Packard2018-10-02
| | | | | | Use FALSE and TRUE in ms5607.c driver instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-cal-freq: Add --nosave and --output options. Check save results.Keith Packard2018-10-02
| | | | | | | | | --nosave means don't attempt to update the on-device configuration data in eeprom. --output means write the calibration value to a file. Signed-off-by: Keith Packard <keithp@keithp.com>
* micropeak: Add MicroUSB 'equals' methodKeith Packard2018-10-02
| | | | | | | This lets the code which polls for devices work with MicroUSB devices too. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Don't accidentally create zero-length PDF filesKeith Packard2018-10-02
| | | | | | | | The PDF files are generated at the same time the HTML files are, so the PDF versions depend on the HTML ones. However, touching the PDF files is a bad idea. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/drivers: Shrink ao_ms5607.c code to fit on micropeak stillKeith Packard2018-10-02
| | | | | | | Use some code constructs that make the little AVR processor happier and save about 16 bytes of memory. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Reduce debug printf spamming during flashing operationKeith Packard2018-10-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: don't build fox1ihu by defaultBdale Garbee2018-08-30
|
* altosuilib: Provide dialog while waiting for flash target to re-appearKeith Packard2018-08-22
| | | | | | | | On windows, switching to the boot loader can take a long time. Instead of timing out after a second, show a dialog and let the user cancel the operation if they get bored of waiting. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Include device path in equals test of AltosUSBDeviceKeith Packard2018-08-22
| | | | | | | Ensure that multiple AltosFlash devices don't appear the same; they all use serial number 1. Signed-off-by: Keith Packard <keithp@keithp.com>