summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* altoslib: Mark AltosConfigData fields as MISSING until setKeith Packard2017-05-15
| | | | | | Instead of using -1 or 0 randomly, use MISSING consistently. Signed-off-by: Keith Packard <keithp@keithp.com>
* re-brand current telefiretwo product as telefireoneBdale Garbee2017-05-15
|
* altos/ao_rn4678: Send '$$$' for new devices. Fix name setting code.Keith Packard2017-05-15
| | | | | | | | | New devices won't respond to the cmd pin we have configured, so get them to command mode by sending the $$$ string. Somehow I'd botched the name setting code and hadn't caught it as I hadn't tried a new device... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf: Fix up serial port flow control configuration bitsKeith Packard2017-05-15
| | | | | | | | | Compute whether any sw/hw flow control is in use. Compute whether hw flow control is in use as a separate value. These make the code a bit easier to follow. Signed-off-by: Keith Packard <keithp@keithp.com>
* libaltos: Add support for TeleBT-v4.0 bluetooth channel changeKeith Packard2017-05-13
| | | | | | | | The RN4678 in TeleBT v4.0 uses channel 6 instead of channel 1. There is code in the linux bits which discovers this value, but that crashes when run under java for unknown reasons. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Handle TeleBT v4.0 battery voltageKeith Packard2017-05-13
| | | | | | | The device reports raw ADC values, which mean AltosLib needs to translate them. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telebt-v4.0: Hook up RN4678 moduleKeith Packard2017-05-13
| | | | | | | We've switched from the BM70 to this module which offers a virtual serial channel over both BT and BTLE. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add RN4678 Bluetooth module driverKeith Packard2017-05-13
| | | | | | | | | This works much like the old BTM module, but supports both bluetooth and bluetooth LE. I've poked at it briefly over BTLE to see that it appears to have the right name, but haven't attempted to communicate over BTLE yet. Signed-off-by: Keith Packard <keithp@keithp.com>
* Use SDP to locate the service channel on LinuxKeith Packard2017-05-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Another bit of altoslib for the old eeprom stuffKeith Packard2017-05-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* have AltosGraph use new AltosPressure to get imperial_units workingBdale Garbee2017-05-11
|
* initial tests made using Terry's stand with a 2500psi sensorBdale Garbee2017-05-11
|
* telefiretwo: don't try to record pre-burn sensor values in FLIGHT recordBdale Garbee2017-05-11
|
* have git ignore ao-bringup/cal_valuesBdale Garbee2017-05-11
|
* telegps: use new eeprom reading codeBdale Garbee2017-05-10
|
* altoslib: Remove older eeprom handling codeKeith Packard2017-05-09
| | | | | | The new code appears to work in minor testing; time to try it all the time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Save eeprom data in new .eeprom formatKeith Packard2017-05-09
| | | | | | A chunk of json for the config values followed by hex numbers for the data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Use new eeprom reading codeKeith Packard2017-05-09
| | | | | | | This just means using different file opening functions, which then get matched by AltosEepromFile and sent off to the new eeprom code. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Hack up AltosEepromFile to support new eeprom codeKeith Packard2017-05-09
| | | | | | Redirect when asked to read an eeprom file using the "Reader" type. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Compile AltosForce and AltosPressureKeith Packard2017-05-09
| | | | | | Useful if you want to actually use these. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add new eeprom management codeKeith Packard2017-05-09
| | | | | | Generic .eeprom file parsing, simpler per-type eeprom data extraction. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add set_config_data to AltosStateKeith Packard2017-05-09
| | | | | | Initialize all config-data related state values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add empty constructor for AltosPyro for JSONKeith Packard2017-05-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add Ms5607 constructor that just takes config_dataKeith Packard2017-05-09
| | | | | | Use for making Ms5607 from eeprom files. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add AltosForce and AltosPressure unitsKeith Packard2017-05-09
| | | | | | Useful for TeleFireTwo. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Hide members from json by prefixing with __Keith Packard2017-05-09
| | | | | | | This lets some structures which would otherwise recurse (and crash) get converted to json, assuming the hidden members aren't relevant. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemini-v3.0: Use dbg connector pin 5 for force bootloaderKeith Packard2017-05-04
| | | | | | This works way better than attempting to use the beeper pin. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemini-v3.0: Add 'recovery mode' on PA14 (pin 6 on dbg header)Keith Packard2017-05-04
| | | | | | | | Connect this pin to GND (pin 3) and TeleMini will come up with N0CALL at 434.550MHz using the original frequency calibration. Helps recover from accidental mis-configuration. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move 'ao_force_freq' to ao_config.cKeith Packard2017-05-04
| | | | | | Instead of having to add it to each product using this variable. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make CDC ACM 'line coding' publicKeith Packard2017-05-04
| | | | | | This allows other systems to see what baud rate the host has requested. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Fix MS5607 raw data to pressure conversion functionMiguel Benavidez2017-05-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The MS5607 sensor provides raw 24-bit ADC outputs to the host along with calibration constants necessary to convert those into temperature and pressure values. The datasheet has a flow chart indicating how to perform this computation. There are two parts of the algorithm which adjust the result based on the ambient temperature, temperatures below 20°C get one compensation factor and temperatures below -15°C get an additional factor. The ground station version of this function mistakenly applied the second compensation factor for all temperatures below +15°C. The result was that the pressure computed on the ground when the measured temperature was between -15°C and +15°C was incorrect, resulting in altitudes which were several hundred meters off in some situations. This can be seen when displaying any .eeprom (or .mpd) data files for flights with temperatures in that range. The datafiles themselves are not corrupted, only the display operation. This is not seen for telemetry data, where the pressure and associated altitude is computed in the airframe using the correct algorithm. Thanks much to Miguel and the rest of the Vanguard School TARC team for identifying the problem and providing this fix. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telebt-v4.0 Set CPU clock to 48Mhz instead of 96MhzBdale Garbee2017-05-03
|
* altos/telegps-v2.0: Disable external serial port to save ROMKeith Packard2017-05-02
| | | | | | We'll have to rewrite some of the serial code to avoid sucking memory here. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add code to use SoC flash as storageKeith Packard2017-05-02
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v2.0: Reorder initialization sequenceKeith Packard2017-04-30
| | | | | | | | This tries to be a bit more logical about the board initialization sequence, starting with the OS, then the support hardware, internal drivers, external drivers and finally services. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v2.0: CC1200 CS is PA1, not PA5.Keith Packard2017-04-30
| | | | | | | Also remove some unneeded config of an additional pin for MCU wakeup, which the CC1120 needs but the CC1200 does not. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v2.0: GPS chip is connected to serial 2, not serial 1Keith Packard2017-04-30
| | | | | | Turn on serial 2 and use it for GPS. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v2.0: Remove some unneeded definesKeith Packard2017-04-30
| | | | | | HAS_MS5607 and HAS_RADIO_RECV aren't useful. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v2.0: Battery ADC input is on PB1, not PA0Keith Packard2017-04-30
| | | | | | Rewire as needed. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v2.0: Set CPU clock to 48MHz instread of 96MHzKeith Packard2017-04-30
| | | | | | Turns out the CPU doesn't run well at that speed. Who would have guessed? Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v2.0: Adjust LED configKeith Packard2017-04-30
| | | | | | The LED is green, not red. Use it for panic and GPS lock. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/kernel: Allow TeleGPS v2 to scale battery in telemKeith Packard2017-04-30
| | | | | | | | | TeleGPS v2 uses the STMF0 processor instead of the LPC11, which means the ADC range is different. As the raw ADC value was getting sent to represent battery voltage in the config packet, we need to scale that for the different processor. This patch allows that to happen. Signed-off-by: Keith Packard <keithp@keithp.com>
* src/kernel: Add GPS lock blink LED to tracker codeKeith Packard2017-04-30
| | | | | | Blinks an LED briefly once every three seconds when GPS is locked. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Build MicroPeak-v2.0 by defaultKeith Packard2017-04-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak-v2.0: Add initial MicroPeak v2 supportKeith Packard2017-04-28
| | | | | | | stm32f042 processor replaces the attiny85 and adds USB support along with more storage. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Add support for HSI clocked applicationsKeith Packard2017-04-28
| | | | | | And allow application space to be limited to less than available flash. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Fix HSI clock rate.Keith Packard2017-04-28
| | | | | | It's 8MHz, not 16MHz Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Make sure systick is off before programmingKeith Packard2017-04-28
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stmf0: Compute serial baud rate registers at runtimeKeith Packard2017-04-28
| | | | | | | This allows the system clock to vary at runtime, instead of requiring a fixed value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak: Update ao_micropeak.h for MicroPeak v2Keith Packard2017-04-28
| | | | | | Allow different sample times, add constant for MicroPeak v2 log files. Signed-off-by: Keith Packard <keithp@keithp.com>