summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* altos: Add missing ADC divider values for Tmega v1.0Keith Packard2014-01-15
| | | | | | Somehow I left these out of the previous commit Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Report battery, apogee and main voltages over APRSKeith Packard2014-01-15
| | | | | | This makes APRS more usable when you mute the RF audio on the HT. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use factory calibration for all acceleration computationsKeith Packard2014-01-14
| | | | | | | | | The ground acceleration value will vary depending on the tilt angle of the airframe, which will result in incorrect acceleration computations during flight. This also avoids accidental boost detect when moving the airframe around in pad mode. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Switch APRS to compressed position formatKeith Packard2014-01-14
| | | | | | This provides lat/lon/alt in fewer bytes while improving precision. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Flip acceleration data consistently for orientation changesKeith Packard2014-01-01
| | | | | | | | | | | Must flip the acceleration calibration data using the same function as flipping the actual acceleration data or the calibration will no longer be valid after changing orientation. For the MMA655x, this means using 4095 in both places, rather than using 0x7fff for the calibration data changes and 4095 for the data value changes. For the MPU6000, this means using 0 in both places. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add 'O' command for TeleMega orient testingKeith Packard2013-12-28
| | | | | | | | Only present when HAS_FLIGHT_DEBUG is enabled, this command lets the user check the orientation tracking code by showing the current orientation and when the calibration values are reset. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Turn on -Werror for STM and LPC buildsKeith Packard2013-12-20
| | | | | | | Now that the build completes with no warnings, make future warnings into errors. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Turn on warnings for LPC products tooKeith Packard2013-12-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Missing */ in definition of PIO0_4Keith Packard2013-12-20
| | | | | | Would maek using these values pretty hard. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: lpc exti setup was incorrectly testing modeKeith Packard2013-12-20
| | | | | | Check for NOCONFIGURE bit was missing parens Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: cc115l driver tone_run wasn't recording number of tonesKeith Packard2013-12-20
| | | | | | This would prevent the cc115l driver from ever sending tones. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up warnings for LPC productsKeith Packard2013-12-20
| | | | | | Unused varibles, functions and parameters. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Turn on -WextraKeith Packard2013-12-20
| | | | | | All of the warnings for STM projects are cleaned up now Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add default button return value from ao_button_getKeith Packard2013-12-20
| | | | | | | This "can't" happen, but it's not unreasonable to have a default return value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: unsigned value in ao_pyro_set checked for negative valueKeith Packard2013-12-20
| | | | | | No sense checking unsigned values for less than zero. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up -Wextra warningsKeith Packard2013-12-20
| | | | | | | Unused variables, mismatching signed/unsigned and a few other misc warnings. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Turn on -Wall for stm compilesKeith Packard2013-12-20
| | | | | | The warnings are all cleaned up now, leave this on by default Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clean up some minor warnings from -WallKeith Packard2013-12-20
| | | | | | Unused variables, functions and labels, missing enums in switch. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: mma655x also needs ao_sensor_errorsKeith Packard2013-12-20
| | | | | | | TeleMetrum has an MMA655X but no IMU, so it needs an explicit addition for sensor errors. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Complain about sensor self-test errors only in idle modeKeith Packard2013-12-20
| | | | | | | | | When the accelerometer says to go into pad mode, don't look for other sensor self test errors. Only look for sensor self test errors to choose between idle and invalid mode. This will prevent minor sensor self test errors from letting the rocket fly safely. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: 3-axis accel calibration was invalid in explicit accel cal modeKeith Packard2013-12-20
| | | | | | | | When explicit Z-axis accel calibration values were provided to the 'c a' command, the 3-axis accelerometer calibration values would get set to uninitialized values. Not so helpful. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Execute self-test on MMA655X partKeith Packard2013-12-20
| | | | | | | | | | This doesn't check for fine calibration, just makes sure the part is within the broad tolerances specified by the manufacturer. The subtle fix here was actually getting reset working -- there was a typo in the bitpattern definition which caused the reset to fail, making it hard to self-test the part, as self-test is only valid before the part is running. Signed-off-by: Keith Packard <keithp@keithp.com>
* fix missing newline at end of src/test/MakefileBdale Garbee2013-12-19
|
* altos/lpc: Stop sending SETUP IN when the requested size is reachedKeith Packard2013-12-19
| | | | | | | | The host won't keep asking for SETUP IN packets once it has received the amount of data requested, so check to see if we've sent that much and flip back to IDLE state if so. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Reset less of the device on USB reset.Keith Packard2013-12-18
| | | | | | | | | | This leaves most of the device configured across USB reset, which appears to help when sending a IN reply to the first SETUP packet; without this change, the IN reply would always get a length of 0, which is fine for SET_ADDRESS, but not for GET_DESCRIPTOR_DEVICE, which OS X appears to send before setting the address (go figure). Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Try IMU self-test 10 times before giving upKeith Packard2013-12-18
| | | | | | | | This should keep the device from failing to boot unless the IMU is actually broken. Oh, and if self test does fail, this places the flight computer in 'Invalid' state rather than panic. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Semantic error in STM usb disable caused it to not workKeith Packard2013-12-18
| | | | | | | The USB enable register wasn't actually getting rewritten with the enable bit turned off, so the USB device was still powered on in flight. Signed-off-by: Keith Packard <keithp@keithp.com>
* Move pdclib build results to pdclib-rootKeith Packard2013-12-18
| | | | | | This makes pdclib easier to manage as a submodule Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: get stm-bringup building againKeith Packard2013-12-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Remove stale stm test apps from regular buildKeith Packard2013-12-18
|
* altos/stm: Update pdclib paths for flash-loader buildsKeith Packard2013-12-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: create target pdclib directories before buildingKeith Packard2013-12-18
|
* altos: Build pdclib locally if necessaryKeith Packard2013-12-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: Be a bit more resistant to toolchain section name changesKeith Packard2013-12-18
| | | | | | | Just add some wild cards on the ends of each section name in case the toolchain changes names in the future. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make TeleMega v0.1 work more like TeleMega v1.0Keith Packard2013-12-18
| | | | | | | | | | | I've still got one working v0.1 board which is useful for testing stuff, so make it work more like the released TeleMega: * Use E for drogue, F for main * Use on-chip eeprom for config * Fix ADC report printf to match Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use all 16 bits of setup packet len when limiting reply lenKeith Packard2013-12-17
| | | | | | | | | We were only using the low 8 bits of the setup packet reply max len, which meant that if the other side sent a weird max len (as Windows 7 does), then we'd truncate our setup reply to whatever was in the low 8 bits of that value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Broke TeleMetrum GPS reporting by holding the GPS mutex too muchKeith Packard2013-12-17
| | | | | | | We can't hold the GPS mutex while waiting for the GPS receiver to load data as it protects the GPS data with the GPS mutex. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Remove ARM .ihx files on 'make clean'Keith Packard2013-12-10
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Rename telemega-v0.3 to telemega-v1.0Keith Packard2013-12-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Oops. Was only filling out part of the TeleMetrum ADC recordKeith Packard2013-12-08
| | | | | | | | Because it's missing a return, we'd end up filling out one element of the ADC record per interrupt, and rotating through which one was set, hitting all of the even offsets within the struct. Yikes! Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: arm-none-eabi-binutils now puts 'main' into .text.startupKeith Packard2013-12-08
| | | | | | | | Change name of .text.ram to .ramtext, then load .text* into flash and .ramtext into ram. This ensures that 'main' and anything else in a random .text.* segment will get loaded into flash as appropriate. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: remove all versions of stm-demo executableKeith Packard2013-12-08
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Change flash loader name to just AltosFlashKeith Packard2013-12-08
| | | | | | Remove the software version string from the product name Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Build .ihx files for all arm projectsKeith Packard2013-12-08
| | | | | | The .ihx version can be processed by the java loader Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow products to override default 100mA USB currentKeith Packard2013-12-08
| | | | | | This will allow products to specify their own current limit. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Nothing in altos uses AES decryption, so don't compile itKeith Packard2013-12-07
| | | | | | Saves a bit of space where AES is used, and avoids some compiler warnings. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/test: Compute and plot tilt based on GPS trackKeith Packard2013-12-07
| | | | | | | This lets us compare the gyro-computed tilt angle against the actual flight path. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Telemega uses eeprom, include it in main fileKeith Packard2013-12-07
| | | | | | ao_telemega.c didn't include ao_eeprom.h leaving a function undefined Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add lots more GPS data to mega logKeith Packard2013-12-07
| | | | | | | There's plenty of space in the GPS log packets to hold course, speed, climb and DOP values, so just stick them in. Signed-off-by: Keith Packard <keithp@keithp.com>
* src/cc1111: Turn off RC osc after xtal is runningKeith Packard2013-12-07
| | | | | | | There's no reason to keep running the RC oscillator after we switch to the crystal, so turn it off. Signed-off-by: Keith Packard <keithp@keithp.com>