summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Update persistent notification in TelemetryServiceMike Beattie2019-09-19
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* Convert to AndroidX from support_v4Mike Beattie2019-09-19
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* Import cleanupMike Beattie2019-09-19
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* Commented out duplicate stringsMike Beattie2019-09-19
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* Indentation cleanupMike Beattie2019-09-19
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* Add FOREGROUND_SERVICE permission which is now requiredMike Beattie2019-09-19
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* Remove versioning data from AndroidManifest.xml.inMike Beattie2019-09-19
| | | | | | (now in build.gradle) Signed-off-by: Mike Beattie <mike@ethernal.org>
* Clean up duplication in AndroidManifest.xml.inMike Beattie2019-09-19
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* buildinfo data comes from Makedefs now, not VersionMike Beattie2019-09-19
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* Add gradle build filesMike Beattie2019-09-19
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* Update files that reference new pathsMike Beattie2019-09-19
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* Move java source, and resources to new paths for gradleMike Beattie2019-09-19
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* Remove ant build filesMike Beattie2019-09-19
| | | | Signed-off-by: Mike Beattie <mike@ethernal.org>
* libaltos: gitignore btletestHEADmasterKeith Packard2019-08-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add .gitignore files for new projectsKeith Packard2019-08-28
| | | | | | | | | EasyMega v2.0 TeleFireEight v2.0 TeleFireOne v1.0 TeleLco v0.2 with cc1200 radio Signed-off-by: Keith Packard <keithp@keithp.com>
* icon: Ignore generated LED imagesKeith Packard2019-08-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Add new altosdroid iconKeith Packard2019-08-28
| | | | | | | Remove drop shadow Change size to make Google happier Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use fast timer for buttons instead of edge-triggered ISRKeith Packard2019-08-12
| | | | | | | | | | | | | If the button bounces between the triggering interrupt and the button state check, we could lose the final state change of the button and send an incorrect event to the application. In the worst case, the button would end up in exactly the wrong state, toggling in the wrong direction. Use the fast timer to poll all buttons instead so that there is only one check of each button at each poll interval (instead of the interrupt and the state check). This makes buttons reliably debounced. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Make it possible to disable APRSKeith Packard2019-08-04
| | | | | | | The menu says "Disabled", but the device wants "0". Translate back and forth to avoid an error. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Fix path to easymini-v2.0 ihx fileKeith Packard2019-08-04
| | | | | | This gets the bits included in macosx and linux builds Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Hack up build to 'work' for nowKeith Packard2019-08-04
| | | | | | | | | | Android apps are now build with gradle instead of ant; the ant bits are stale and only work with old java. Use old java to run ant while using the current java compiler to build things. This requires a custom version of the google play API library. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup: add a turnon_telefireeight scriptBdale Garbee2019-08-02
|
* Use discovered java path for compiler and jni include filesKeith Packard2019-07-17
| | | | | | | | Instead of using the discovered java bits just for jni.h, also use javac from that directory. Add JAVA_VERSION param to set language version for newer compilers. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Stop using deprecated Java functionalityKeith Packard2019-07-17
| | | | | | | new Double(x) -> Double.valueOf(x) c.newInstance() -> c.getDeclaredConstructor().newInstance() Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-eeprom: Add support for TeleFireTwoKeith Packard2019-07-16
| | | | | | | Display converted pressure and thrust data along with raw thermistor data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Record all failed sensors and report status at power upKeith Packard2019-07-16
| | | | | | | | Use DATA bits to mark which sensors have failed, then report that in beeps at startup time to help diagnose hardware failures while still allowing the board to be used over USB. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: Reduce power usageKeith Packard2019-07-16
| | | | | | | This gets power consumption down under 1mA on the pad. Not really low enough to sell, but I think this is about as low as the chip will go. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Allow SPI to be powered down when idle if desiredKeith Packard2019-07-16
| | | | | | | Set SPI_1_POWER_MANAGE and/or SPI_2_POWER_MANAGE to have the spi blocks powered down when not in use. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add 'ao_serial_shutdown'Keith Packard2019-07-16
| | | | | | This powers down the UART logic on request. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Leave power interface disabled until neededKeith Packard2019-07-16
| | | | | | | | We only need the power interface when placing the chip in the lowest power state, so don't power up the power interface clock at startup, instead wait until later. Signed-off-by: Keith Packard <keithp@keithp.com>
* icon: Add altosdroid-specific iconKeith Packard2019-07-16
| | | | | | | Google style guides have no drop shadows anymore, so create an icon for the play store without one. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Don't crash when flashing an unknown deviceKeith Packard2019-07-16
| | | | | | | An unknown device will not have a config; check for that before showing radio calibration dialogs. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-eeprom: Add altitude data for baro valuesKeith Packard2019-07-16
| | | | | | Displays altitude along with pressure and temp for baro sensor data. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/lib: Add atmosphere modelKeith Packard2019-07-16
| | | | | | Converts between pressure and altitude Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-telem: Fix man page and usage to match codeKeith Packard2019-07-15
| | | | | | ao-telem just parses .telem files. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow ms5607 driver to either set ao_sensor_errors or panicKeith Packard2019-07-15
| | | | | | | | | | Products that want to remain usable (over USB) after a sensor failure don't want to panic when the ms5607 fails, but products with limited ROM space don't want to have extra code to check for the sensor failure and panic. Change the MS5607 driver to allow either option, and then make the micropeak based devices use it. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Change ao-eeprom into eeprom analysis toolKeith Packard2019-07-15
| | | | | | | | | ao-eeprom used to be a TeleMetrum v0.2 specific tool for fetching eeprom contents from that device. ao-dumpflash handles that case now. ao-eeprom now parses .eeprom files and displays their contents. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2: Update .gitignoreKeith Packard2019-06-18
| | | | | | Ignore built stuff Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2: Correct AO_LOG_ID valueKeith Packard2019-06-18
| | | | | | Typo wasn't caught by the compiler (thanks!) Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2: Erase log space at end of BOOST_DELAYKeith Packard2019-06-18
| | | | | | | We have to erase the log before the flight starts, so this seems like the latest possible moment. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Don't dump MS5607 eeprom in 'B' commandKeith Packard2019-06-18
| | | | | | MicroPeak v2 now has config stuff where these values get shown Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add support for MicroPeak v2 eeprom formatKeith Packard2019-06-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: expose log and config commands over USBKeith Packard2019-06-18
| | | | | | This lets AltosUI handle the eeprom data Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/telegps: Display error message when attempting to graph unknown filesKeith Packard2019-06-18
| | | | | | Instead of presenting an empty graph window. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Always create an ordered record set for eeprom filesKeith Packard2019-06-18
| | | | | | | | If we can't parse the format, just leave it empty. This makes code handling arbitrary records much easier as it doesn't have to check for the ordered set existing. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: Go into standby mode after landingKeith Packard2019-06-18
| | | | | | | This is the lowest power state we can reach, and consumes about 15µA or less. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: Fix LED blinking sequence at power-onKeith Packard2019-06-18
| | | | | | 'pips' happens between altitude report and data dump. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: Wait for the power supply to stabilize before measuringKeith Packard2019-06-18
| | | | | | | | If we don't wait before measuring the battery, it will often read under 3.2V right at boot time, which puts MicroPeak in flight mode instead of USB mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: Don't run flight code when plugged inKeith Packard2019-06-17
| | | | | | No sense running the flight code when there's a USB cable attached. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Support ao_ms5607_dump when no ms5607 taskKeith Packard2019-06-17
| | | | | | | | | MicroPeak v2.0 has tasking support, but doesn't have a separate ms5607 task. That means the device isn't getting initialized when not running the flight code, so in cmd mode we need to make sure it's initialized, and we also need to actually fetch a value to display. Signed-off-by: Keith Packard <keithp@keithp.com>