summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* altos: Add ao_distance.c to compute cartesian distances on the globeKeith Packard2014-06-05
| | | | | | | This is not a great circle distance, but should be good enough for points reasonably close together Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fetch/store only 8 bits for pyro state valuesKeith Packard2014-06-02
| | | | | | | These fields are uint8_t, not int16_t. Fetching and storing 16 bits is a bad idea. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Maximum pyro configuration parameter has 4 bytes in the nameKeith Packard2014-06-02
| | | | | | | | "f>=" needs four bytes, not just three to store the whole string. If we only store three, then we never manage to compare correctly as the null terminating byte is missing. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Configuring pyro channels can use more than 48 charactersKeith Packard2014-06-02
| | | | | | | Increase the command buffer from 48 to 128 bytes to hold the longest pyro configuration commands Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow sparse GPS data logging for TeleGPSKeith Packard2014-05-30
| | | | | | | When the device hasn't moved for a while, stop logging data. Start as soon as it moves again. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Test APRS altitude encodingKeith Packard2014-05-30
| | | | | | Verify fixed point version against naïve implementation Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Switch APRS altitude encoding computation to fixed pointKeith Packard2014-05-30
| | | | | | | | | APRS altitude is logarithmically encoded, so this implementation includes a fixed point log-base-2 function along with a bit of other fixed point stuff. This eliminates all floating point from TeleGPS, saving around 4kB of code space. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fake flight code changes in kernel and stmKeith Packard2014-05-27
| | | | | | | Redirects data input from local sensors to USB sourced data, leaving USB enabled when the computer goes into pad mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: Fix ADC structure for mega, use ao_config.hKeith Packard2014-05-25
| | | | | | | | This switches from hand-coding the ao_config structure to using ao_config.h and also updates the ADC structure for ao_flight_test_mega to using the same one as telemega does natively Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move ao_config declarations to ao_config.hKeith Packard2014-05-25
| | | | | | No sense leaving these in ao.h, and it's nice to make that file smaller Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make MS5607 PROM a public variableKeith Packard2014-05-25
| | | | | | | This will let the fake flight code update it as necessary, without creating a new interface in ao_ms5607.c Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add config values for tracker start motion limitsKeith Packard2014-05-21
| | | | | | | | TeleGPS switches from 'pad' to 'drogue' states after the device moves a specified distance from the initial starting point. These values can be configured, and this is the configuration for them. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: Parse mega ground data. Fix pyro parsingKeith Packard2014-05-21
| | | | | | This gets ao_flight_test_mega working with eeprom files Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: Get APRS generation test working againKeith Packard2014-05-21
| | | | | | | APRS now includes sat info, so we have to fake that up to generate an APRS test file Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Don't define ao_ignite_decivolt without ignitersKeith Packard2014-05-21
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Expose ao_gps_set_rate from u-blox driverKeith Packard2014-05-21
| | | | | | This lets applications set the desired GPS update rate to reduce power usage Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix cc115l debug buildKeith Packard2014-05-21
| | | | | | | New compiler warning flags and moving to the nxp require a few minor changes in the code to make it work. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow APRS to send just battery voltageKeith Packard2014-05-21
| | | | | | Don't require apogee and main voltages as well Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: whitespaceKeith Packard2014-05-21
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: adc code computes number of active ADC channelsKeith Packard2014-05-21
| | | | | | | Don't require the application to provide AO_NUM_ADC when AO_ADC_NUM is computed automatically. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Make stm applications depend on ao_boot.hKeith Packard2014-05-21
| | | | | | This should make sure they get recompiled when boot stuff changes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: stm and lpc ao_boot.h were identical. move to kernel.Keith Packard2014-05-15
| | | | | | | These two files were absolutely identical, so share them by moving under kernel instead.x Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use explicit boot loader signal in ao_boot_rebootKeith Packard2014-05-15
| | | | | | | | Instead of just "knowing" that ao_boot_loader will be passed zero when the application wants to get back to the boot loader, explicitly define the values so that both sides always agree. Signed-off-by: Keith Packard <keithp@keithp.com>
* include EasyMega MakefilesBdale Garbee2014-05-15
|
* working?Bdale Garbee2014-05-15
|
* lose the (old) easymega-v1.0 directory in favor of my fresher 0.1Bdale Garbee2014-05-15
|
* altos: Make quadrature debounce per-pin rather than per-deviceKeith Packard2014-05-15
| | | | | | | Debouncing per-pin means we don't lose transitions, which makes counting a lot more precise. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemini-v2.0: Enable beep frequency configurationKeith Packard2014-05-15
| | | | | | Now that there's space for this, add it in. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemini-v2.0: Remove old baro->alt conversion tableKeith Packard2014-05-15
| | | | | | TeleMini doesn't have two baro sensors... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/cc1111: Switch P1_0 from a green LED to USB pullupKeith Packard2014-05-15
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/cc1111: Add support for CPU-driven USB pullupKeith Packard2014-05-15
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/cc1111: Errata fix isn't needed for discontinued productsKeith Packard2014-05-13
| | | | | | And, doesn't fit in memory for some of them, so don't compile it. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/cc1111: Wait for xtal to be stableKeith Packard2014-05-13
| | | | | | | Errata http://www.ti.com/lit/er/swrz022c/swrz022c.pdf says that the xtal is stable bit is bogus and that you need to just delay for a while. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge remote-tracking branch 'origin/master'Keith Packard2014-05-12
|\
| * fix copyright yearBdale Garbee2014-05-09
| |
* | altos/flash-loader: Check memory addresses against flash spaceKeith Packard2014-05-12
| | | | | | | | | | | | | | | | | | | | | | This validates memory read/write requests to make sure they are within the available flash memory space. This also reports the flash base and bounds addresses in the 'version' command so that the loader can validate the image before attempting to write it. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Use #define'd constants for GPIO register addressesKeith Packard2014-05-12
| | | | | | | | | | | | | | This lets the compiler short-circuit the tests in ao_enable_gpio and ao_disable_gpio to save a bit of code space and time. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: Figure out available flash space based on chip id registersKeith Packard2014-05-12
| | | | | | | | | | | | | | Look at the flash size and the device id registers to figure out how much flash is available. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos/stm: White space fix in ao_boot_pin.cKeith Packard2014-05-12
| |
* | altos/stm: Use flash address of boot loader instead of 0x0Keith Packard2014-05-12
| | | | | | | | | | | | | | Flash is at 0x08000000, but when the chip boots, it can be at 0x0 as well. Use the 0x08000000 address when rebooting to flash Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Assume all LPC products will have 32KB of flashKeith Packard2014-05-12
| | | | | | | | | | | | | | If we ever use something smaller than this, we'll need to figure out how to tell how much memory the device has. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Report amount of program space available in the version commandKeith Packard2014-05-12
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Add LED test command to pca9922 driverKeith Packard2014-05-12
| | | | | | | | | | | | This lets you control the LEDs from the command line to test things. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Simplify quadrature trackingKeith Packard2014-05-09
| | | | | | | | | | | | | | | | | | | | | | | | Set the timer to 200Hz for a 5ms debounce interval. Then, simply look for transitions ending in both bits in the encoder being off, which indicates the the encoder is resting in a detent. If bit '2' is turning off, the encoder was rotated clockwise, otherwise the encoder was rotated counter clockwise. This is a lot more reliable, although still not perfect. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Clean up trailing whitespace in ao_pad.cKeith Packard2014-05-08
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Fix byte offsets in the mega AO_LOG_FLIGHT packetsKeith Packard2014-05-08
| | | | | | | | | | | | Just comments, but even those should be correct Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: ublox driver always offers course data when it has a fixKeith Packard2014-05-08
| | | | | | | | | | | | | | Set the AO_GPS_COURSE_VALID bit to signal that this part of the GPS data is valid. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: 8051 64 * 16 multiply function was broken for negative 64-bitKeith Packard2014-05-08
|/ | | | | | It was jumping around the actual multiply when the 64-bit argument was negative. Signed-off-by: Keith Packard <keithp@keithp.com>
* relay control implemented, this project is now completeBdale Garbee2014-05-08
|
* first cut of usbrelay-v0.1 support .. LEDs wiggle, not switching relay yetBdale Garbee2014-05-08
|