summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * altos: Add µPusb v3.0 projectKeith Packard2018-05-07
| | | | | | | | | | | | | | This replaces the ft230 with a stm32f04, saving a bit of BOM and giving us control over the firmware. Signed-off-by: Keith Packard <keithp@keithp.com>
* | doc: Update pyro channel info to reflect UI changesKeith Packard2018-05-07
| | | | | | | | | | | | Use the new naming in the UI. Add lots more comments about how things work. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/test: Replace state name with 10* state value in test log. Fix raw speedKeith Packard2018-05-07
| | | | | | | | | | | | | | | | Using a state value means we can plot state changes along with the rest of the graph. Raw speed (simple integrated acceleration) was busted; mostly needing to skip the first accel sample. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Eliminate height requirement for coast detectKeith Packard2018-05-07
| | | | | | | | | | | | | | | | | | | | | | We had required a minimum altitude of 100m to transition from boost to coast. With small motors in a heavy multi-staged rocket, this can fail to detect coast in time to light the second motor. Also, this would fail to deploy recovery systems if the flight failed before reaching 100m. Signed-off-by: Keith Packard <keithp@keithp.com>
* | Update version to 1.8.5.2Keith Packard2018-05-07
| | | | | | | | | | | | | | Shipped some bits to Fred Taverni to test eliminating the altitude requirement for boost detect as he stages so low. Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-chaosread: Add support for the new flash endpoint in chaoskeyKeith Packard2018-05-07
| | | | | | | | | | | | | | This adds support for endpoint 0x87, which streams the contents of the onboard flash to the host for firmware verification. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/chaoskey-v1.0: Add endpoint for reading flash contentsKeith Packard2018-05-07
| | | | | | | | | | | | | | This creates another IN endpoint which provides the contents of flash for validation of the firmware load on the host. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stmf0: Fix up USB debug codeKeith Packard2018-05-07
| | | | | | | | | | | | | | At least make it compile. In this configuration, it's dumping out IN3 endpoint register values. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stmf0: Add IN3 alternate endpoint supportKeith Packard2018-05-07
| | | | | | | | | | | | This adds the code necessary to drive another IN endpoint. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stmf0: Toggle IN2 SW_BUF bit when sending dataKeith Packard2018-05-07
| | | | | | | | | | | | | | This tells the hardware we're done writing data to the second input buffer and allows it to be switched from NAK to VALID. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/kernel: Add USB descriptors for IN3Keith Packard2018-05-07
| | | | | | | | | | | | | | This adds the necessary descriptor information to support another IN endpoint for applications. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/kernel: Define usb IN2/IN3 functionsKeith Packard2018-05-07
|/ | | | | | | These are putchar and flush functions that are used when sending data to the additional IN2 and IN3 endpoints. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup/turnon_telemini: Skip DFU if no DFU device is presentKeith Packard2018-05-01
| | | | | | | | This skips running dfu-util to load the bootloader if there isn't a suitable DFU device listed in the system, which allows an already-flashed device to be run through the same script. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Set 0x0 mapping to Main Flash for boot loaderKeith Packard2018-05-01
| | | | | | | | | When DFU finishes loading firmware and jumps to the application, it leaves the mapping of addresses starting at 0x0 set to System flash, which prevents the boot loader from receiving interrupts and requires a power cycle during flash & cal. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: whitespace fixKeith Packard2018-05-01
| | | | | | Trailing whitespace. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Change tests for AO_BOOT_CHAIN and AO_BOOT_PIN to #ifKeith Packard2018-05-01
| | | | | | Were #ifdef, which meant that #define AO_BOOT_PIN 0 didn't work right. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix Idle Monitor on TeleMega v3Keith Packard2018-04-28
| | | | | | | | | | The new IMU includes a mag sensor, and there's no separate mag sensor. Add support for reading the mag sensor values from the IMU, separate out v3 from previous TeleMega versions so that the code can stop trying to read the mag sensor. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox1ihu: Pull down radio control pin in flash loaderKeith Packard2018-04-26
| | | | | | Ensures that the radio is powered down while in the flash loader. Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove ao_radio_cal from stm products without radiosKeith Packard2018-04-26
| | | | | | Products without a radio don't need this value. Signed-off-by: Keith Packard <keithp@keithp.com>
* had the sense backwards .. presence of 'attached' should put us in the loaderBdale Garbee2018-04-26
|
* move signal that forces flash-loader on to PB8, active highBdale Garbee2018-04-26
|
* altos: Build fox1ihu by defaultKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Enable system timer in flash loader and prod watchdog with itKeith Packard2018-04-26
| | | | | | | This makes it possible to reflash the board without needing to disable the watchdog. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Update ADC to fox-1 IHU Revision 2Keith Packard2018-04-26
| | | | | | Change ADC pin definitions to match new hardware. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Transition to current altos build environmentKeith Packard2018-04-26
| | | | | | Fix the library usage, use $(LIBS) instead of $(SAT_CLIB) -lgcc Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: update product name to show v2, enable watchdog by defaultKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Run app when PD6 is lowKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Add fox1ihu flash loaderKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Add MRAM and SD card driversKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Enable M25 driver for MRAM.Keith Packard2018-04-26
| | | | | | The M25 driver can also talk to the MRAM chip, with a few adjustments Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Add watchdog timerKeith Packard2018-04-26
| | | | | | Runs at 25Hz, can be enabled and disabled via the command line Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Turn on all of the fox lightsKeith Packard2018-04-26
| | | | | | Fox has two red and two green LEDs Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Provide names for fox ADC channelsKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Fix up Fox ADC bitsKeith Packard2018-04-26
| | | | | | Update to current schematic Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: Initialize FOX adcKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/fox: rename fox productBdale Garbee2018-04-26
| | | | It's Fox1IHU-v1 now
* altos/fox: Add fox1ihu bringup firmwareKeith Packard2018-04-26
| | | | | | Firmware capable of testing fox1ihu hardware Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix data fetching during flashing of cc1111-based devicesKeith Packard2018-04-26
| | | | | | | | | | | We want to get enough information about the target device to verify that the new firmware matches, so fetch 512 bytes instead of just barely enough to cover the romconfig data. Also catch out-of-bounds accesses and handle them, in case even this large array isn't enough. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Keep config data accel cal in antenna up form.Keith Packard2018-04-26
| | | | | | | | | | | | Instead of letting the accel cal data live in whatever form it was fetched in, keep it in antenna up form and provide it in whatever orientation is necessary. This fixes bugs in changing pad configuration where the accel cal values from the old orientation would get used in the new orientation and wreck them. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Flush settings restoration commands after accel calKeith Packard2018-04-26
| | | | | | | | To avoid mangling settings when the user doesn't 'save' things, restore the original accel cal values and orientation after finishing accelerometer calibration. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Remove ascending/descending from pyro configKeith Packard2018-04-26
| | | | | | | | | Ascending and descending don't add any functionality and can confuse people. Clears pyro configuration value when ascending or descending were selected in the configuration so that the user knows to reset the channel from scratch. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Clarify terms in Mega pyro configKeith Packard2018-04-26
| | | | | | | | | | Suggestions from Bob Brown et al Speed -> ascent rate Height -> height above ground Acceleration -> Vertical acceleration Signed-off-by: Keith Packard <keithp@keithp.com>
* Set version to 1.8.5.1Keith Packard2018-04-26
| | | | | | Firmware has changed Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/flash-loader: On STM, don't include ao_usb_disableKeith Packard2018-04-26
| | | | | | This saves a bit of space, keeping the flash loader under 4k on fox Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use max of 64 previous orient values when checking pyro limitsKeith Packard2018-04-26
| | | | | | | | | Instead of checking just a single measurement to see if the orientation is outside of the desired limits, use the maximum of 64 previous values to that rapidly changing orientation won't accidentally enable a pyro channel if sampled at the 'wrong time'. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Simplify ao_usb_write a bitKeith Packard2018-04-26
| | | | | | | Remove unnecessary 'offset' param (was always passed zero). This also makes some code conditional on that value no longer necessary. Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: add release check for altusmetrum-docinfo.xml copyrightKeith Packard2018-04-26
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Attempt to avoid some reported altosdroid crashesKeith Packard2018-04-26
| | | | | | Just looking at stack traces, maybe these changes will avoid some problems? Signed-off-by: Keith Packard <keithp@keithp.com>
* micropeak: Make reported 'max height' value show filtered max heightKeith Packard2018-04-26
| | | | | | | | | | MicroPeak tries to filter out bogus pressure data so that the value reported on the LED is reasonable. We want to report that same value in the UI, which means replacing the normal mechanism for computing max height from the time series of height data with the value computed from the saved minimum pressure value recorded in the device. Signed-off-by: Keith Packard <keithp@keithp.com>
* add a warning about Google limiting per-day access until/unless we payBdale Garbee2018-04-22
|