summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* altos: Support 32MHz xtal on cc1200Keith Packard2015-05-19
| | | | | | | I ended up building some cc1200-based boards with 32MHz xtals, so just make this an option when building the driver. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Clarify what 'after motor' meansKeith Packard2015-05-19
| | | | | | Note that this means after motor burn-out, not after motor start. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-dump-up: Add --wait option to make testing µPusb easierKeith Packard2015-05-19
| | | | | | | | The --wait option hangs around until a suitable device appears, so that you can test a pile of µPusb devices without needing to constantly interact with the command line. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Remove un-implemented --fetchmaps argumentKeith Packard2015-05-19
| | | | | | This has been stubbed out for a while, so just remove it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Expose locale and non-locale floating point parsing functionsKeith Packard2015-05-19
| | | | | | | | | UI bits use locale-specific floating point formats, so parsing those needs to use the locale. Network-based data, like .kml bits need to use non-locale-specific parsing code, so now we've got both APIs available, and each used as appropriate. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Use Locale.ROOT for KML exportKeith Packard2015-05-18
| | | | | | | This avoids locale-specific number formatting, which breaks googleearth when importing the resulting file. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Fix tab label height problemsKeith Packard2015-04-27
| | | | | | | | | With a newer android API versions, we can set the indicator to a View instead of just a string. This lets us wrap the desired string in a TextView and show just that for the indicator, making it exactly the right size. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Add USB support for TeleDongle/TeleBTKeith Packard2015-04-27
| | | | | | This lets AltosDroid use a USB-connected receiver as well as Bluetooth devices. Signed-off-by: Keith Packard <keithp@keithp.com>
* windows: Use new windows stub to launch applicationsKeith Packard2015-03-29
| | | | | | | This avoids needing to locate javaw on the system while also making the registry entries less fragile. Signed-off-by: Keith Packard <keithp@keithp.com>
* icon: Convert windows stub into launcher programKeith Packard2015-03-29
| | | | | | | | | Instead of an empty windows stub that exists only to hold icons, add useful code that allows it to find and run the related java application. This also adds more resources to that application to provide more information to Windows too. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Have fast ADC ring buffer code use wrap-aroundKeith Packard2015-03-20
| | | | | | | | | Instead of requiring that the whole set of returned values fit precisely in the ring, allow for wrap-around so that we can fetch an odd number of ADC values. The previous version required that the fetch amount always be a factor of the ADC buffer size. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/chaoskey: Set USB VID/PID to 0x1d50/0x60c6Keith Packard2015-03-19
| | | | | | | These are allocated from the OpenMoko USB vendor ID page and offer a more 'official' number than from using the 0xfffe space. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add the ability to configure a different USB vendor IDKeith Packard2015-03-19
| | | | | | | ChaosKey will use an OpenMoko vid/pid, so we need the ability to configure a different USB vendor ID for each product. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-list: Show devices that have no TTYKeith Packard2015-03-10
| | | | | | | chaoskey doesn't advertise itself as a modem, so the kernel doesn't allocate a tty device. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: Support old telemega eeprom file formats in ao_flight_testKeith Packard2015-03-10
| | | | | | | | The old eeprom format used different stoarge for the accel calibration data, which doesn't matter to this code, but the change in the format value does. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: Make aprs test code compile againKeith Packard2015-03-10
| | | | | | Adding the compressed/uncompressed config option broke the APRS test harness. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-mega: Clean up formatting of pyro status messagesKeith Packard2015-03-10
| | | | | | There was an extra newline and missing space. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Add map to MonitorIdle displayKeith Packard2015-03-10
| | | | | | | Nice to be able to verify that maps are working by using this mode, instead of needing to use flight monitoring. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Need ao_exti.h for pin configurationKeith Packard2015-03-07
| | | | | | Flash loader uses pin configuration to set up GPIOs for boot selection Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add makefile for chaoskey flash loaderKeith Packard2015-03-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Build chaoskey by defaultKeith Packard2015-03-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add .gitignore for chaoskeyKeith Packard2015-03-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Update telemetry docs to include new packet formatsKeith Packard2015-03-07
| | | | | | | | | | Add TeleMega TeleMetrum v2 and companion data packet formats. List which radio parts each product uses. Document modulation parameters for new data rates. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Deal with bluetooth connection failures betterKeith Packard2015-03-07
| | | | | | | | | | | | | | | | | | | | | Remember when we've closed the bluetooth connection so that we stop operations, including reporting connection status messages or even starting a connection attempt. Pass the AltosBluetooth object back in connection status messages so that TelemetryService can tell when messages from closed objects get delivered. There's a queue between the two, so the above fix catches most of these instances, but not all of them. Stick a delay during reconnect -- if the TeleBT device is getting power-cycled, it will need a few seconds to reconfigure the device at startup, if AltosDroid manages to connect during that time, the configuration commands will be ignored. Unlock the AltosBluetooth device while we connect so that cancel calls will actually work. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/telegps: Change from variable-units snuck into masterKeith Packard2015-03-02
| | | | | | show_units_name(double) only exists on the variable-units branch... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Missing pad field in TMv2 data packetKeith Packard2015-03-02
| | | | | | | | | | The normal ARM padding would have filled this in correctly, but it's best to be explicit about the structure. This also adds a test to make sure the resulting telemetry declaration is exactly 32 bytes, Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Wait for BT disconnect before sending commandKeith Packard2015-03-02
| | | | | | | | | | | If AltosDroid manages to connect to the BT module before we've configured it, we won't be able to talk to it as we can't force the module to ignore connection attempts. Wait for AltosDroid to give up and let us configure the device. Eventually, we'll manage, if AltosDroid's delay interval is longer than the time it takes to configure the unit. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Add ao-flash-stm32f0xKeith Packard2015-03-02
| | | | | | This new script uses openocd to flash stm32f0x parts Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Round frequency when configuring radioKeith Packard2015-03-02
| | | | | | | This makes sure we set the right frequency, instead of being off by 1kHz on a regular basis... Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui/telegps: Add config option for APRS formatKeith Packard2015-03-02
| | | | | | Allow configuration of APRS compressed/uncompressed Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make APRS format (compressed/uncompressed) configurableKeith Packard2015-03-02
| | | | | | | | This provides a choice of compressed vs uncompressed when sending APRS packets to deal with receivers that still do not have support for the more useful compressed format. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/usbtrng: Split out random number generating code to separate driverKeith Packard2015-02-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add chaoskey flash loaderKeith Packard2015-02-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Create chaoskey productKeith Packard2015-02-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Allocate USB buffers at startupKeith Packard2015-02-28
| | | | | | | This lets the extra allocations used from ao_usb_alloc_buffers be allocated before the first USB connection happens. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Typo in ao_crc_stm.cKeith Packard2015-02-28
| | | | | | Extra semicolon Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Fix fast ADC interfaceKeith Packard2015-02-28
| | | | | | | This was configuring the hardware wrong, and wasn't keeping the output ring full. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow software to offer other USB interface classes than CDCKeith Packard2015-02-28
| | | | | | | This lets some boards offer non-CDC class USB interfaces so that the modem driver doesn't pick them up. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altosBdale Garbee2015-02-22
|\
| * altosdroid: Ignore automatic tab changing while activity is savedKeith Packard2015-02-16
| | | | | | | | | | | | | | | | | | | | When the activity state is saved (after onSaveInstanceState()), we can't update the UI until the activity is restarted or restored; that means any UI changes we make, like switching tabs, must deal with this by allowing those changes to be ignored, using commitAllowingStateLoss instead of commit. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosdroid: Missing file: DeviceAddress.javaKeith Packard2015-02-16
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosdroid: Only speak when GUI is runningKeith Packard2015-02-16
| | | | | | | | | | | | | | Create voice in onStart, stop it in onStop. This way, if some other application is in use, the voice won't be annoying you. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosdroid: Explicitly disconnect BT on termination or 'disconnect'Keith Packard2015-02-16
| | | | | | | | | | | | | | | | | | | | This adds an explicit message to the telemetry service telling it when to stop trying to talk to the bluetooth device. Until this message is received, the service will reconnect to the specified BT device. That message is sent when you 'quit' the application, or when you 'disconnect'. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosdroid: Lots of bluetooth connection changesKeith Packard2015-02-16
| | | | | | | | | | | | | | | | | | | | | | | | | | Appears to more reliably abort in-progress connection attempts so you can switch TBT devices without having the previous device in operation. Shows which device the connection is being attempted for. Eliminate the 10-second timer and just disable the service when the GUI shuts down while no BT connection is running. Signed-off-by: Keith Packard <keithp@keithp.com>
| * ao-bringup: Changes for telebt for keith's hackingKeith Packard2015-02-16
| | | | | | | | | | | | | | Make the programming device auto-detect by username. Load binary from ~/altusmetrumllc Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Remove some accidental debug printfs from ao_packet.cKeith Packard2015-02-15
| | | | | | | | | | | | | | While fixing the cc1200 configuration, I added some debug printfs to this code. They were accidentally committed with the fix... Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos/cc1200: Adjust bit-sync configurationKeith Packard2015-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | The default bit timing adjustment mechanism allows for only a 0.2% deviation from the programmed bit timing. I found one TeleMini device which is beyond that tolerance as it was built with an older crystal with more error. Switch to the more expensive synchronization mechanism which allows up to 2% timing error, but requires a multi-byte preamble (which we have). This fixes packet mode nicely. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: embed ao_alarm and ao_clear_alarm in ao_sleep_forKeith Packard2015-02-14
| | | | | | | | | | | | | | sdcc won't embed these itself, and thus consumes too much flash for telemetrum-v1.0 Signed-off-by: Keith Packard <keithp@keithp.com>
| * ao-bringup/turnon_telemini: Detect which programmer to use by $USERKeith Packard2015-02-14
| | | | | | | | | | | | Bdale uses TD 100, keithp uses TD 186. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altosuilib: Detect pair programming by product name, not USB idKeith Packard2015-02-14
| | | | | | | | | | | | | | | | With TeleDongle, TeleBT and TeleMetrum coming in both pair- and self- programmable versions, we can't use the USB id to tell them apart. Instead, fetch the device name and use that instead. Signed-off-by: Keith Packard <keithp@keithp.com>