summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* altoslib: Check for time going backwards when replaying from fileKeith Packard2014-06-10
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add new 'stateless' flight state for TeleGPSKeith Packard2014-06-10
| | | | | | | TeleGPS has no flight state, so add a new 'stateless' state for code to handle this case differently than any of the existing states Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: TeleGPS no longer logs satellite informationKeith Packard2014-06-10
| | | | | | This doubles the amount of space available to log position information Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui/telegps: Switch TeleGPS config to motion/intervalKeith Packard2014-06-10
| | | | | | | | TeleGPS had configurable boost-detect values; those have been replaced with a configurable stop-tracking motion limit and logging/telemetry interval value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui/telegps: Change log size configurationKeith Packard2014-06-10
| | | | | | | | | | | | | * Use new log-space value provided by firmware when available. * Divide that up into 1-8 flights and offer those sizes as options to the user instead of a fixed set of sizes. * Show how many flights each selection will store * This also checks values provided by the user Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set TeleGPS default log size to half of avaiable memoryKeith Packard2014-06-10
| | | | | | | | LPC11U14 doesn't have on-chip config space, so we're consuming a block of external flash. As a result, only 1984kB are available for logging. Set the default log size to half of that to store two flights. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Simplify tracker logic, removing boost detectKeith Packard2014-06-10
| | | | | | | | | | This removes the ao_flight_state value from the tracker code and makes it simply log position information when the device has moved within the last 10 log intervals. This also changes the configuration parameters to define what 'motionless' means, and what interval to configure the GPS receiver for, log data and send telemetry. Signed-off-by: Keith Packard <keithp@keithp.com>
* Revert adding state to GPS location packetsKeith Packard2014-06-10
| | | | | | TeleGPS no longer has ao_flight_state Signed-off-by: Keith Packard <keithp@keithp.com>
* Revert "ao-tools: Parse TeleGPS state value from gps location packet"Keith Packard2014-06-10
| | | | This reverts commit 428d09294ba0395fedd71346ad00fd90a4cdde97.
* altos: Make extra pyro channel firing time configurableKeith Packard2014-06-10
| | | | | | | This adds a 'I' parameter to set the extra pyro channel firing time (in ticks). This has no effect on the main/drogue channels. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Report total available log space in version commandKeith Packard2014-06-10
| | | | | | | | This provides a more accurate means of determining available log space than guessing whether some portion of the flash chip holds configuration data. Signed-off-by: Keith Packard <keithp@keithp.com>
* Revert "altos: Write current flight state to GPS data from GPS drivers"Keith Packard2014-06-10
| | | | This reverts commit db6003d34595fbd103d5b131912b6a797254f1c5.
* Revert "altoslib: Parse TeleGPS state value from GPS telemetry packet"Keith Packard2014-06-08
| | | | This reverts commit d69547796caf74405f8304d23d4ae318315bbd7b.
* Bump to version 1.3.2.41.3.2.4Keith Packard2014-06-07
|
* altoslib: Recover battery voltage from TeleGPS configuration packetKeith Packard2014-06-07
| | | | | | | | TeleGPS stuffs battery voltage in the apogee_delay slot of the configuration packet. Pull it out from there and stick it into the current state. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: TeleMega uses 5.6k/10k divider for v_battKeith Packard2014-06-07
| | | | | | | I suspect the 15 and 27 values are a 'close approximation' for integer work on the cc1111 devices Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Enable ADC for TeleGPS v1.0 battery voltage measuringKeith Packard2014-06-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Encode TeleGPS battery voltage in configuration packetKeith Packard2014-06-07
| | | | | | TeleGPS doesn't need apogee delay, so re-purpose it for the battery voltage Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Parse TeleGPS state value from GPS telemetry packetKeith Packard2014-06-07
| | | | | | | TeleGPS adds 0x80 to the state value to signify that this otherwise unused byte contains the current state value Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools: Parse TeleGPS state value from gps location packetKeith Packard2014-06-07
| | | | | | | TeleGPS encodes state in a spare gps location packet byte, masking in 0x80 to signify that the state value is valid Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make telegps builds depend on ao_tracker.hKeith Packard2014-06-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Reduce tracker GPS buffer to 4 samplesKeith Packard2014-06-07
| | | | | | We just don't have enough RAM for 8 samples. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Define lat/lon sum variables as 64-bit instead of 16Keith Packard2014-06-07
| | | | | | Oops. 16 bits won't hold position information... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Use 0x80 to indicate valid state value in the GPS location packetKeith Packard2014-06-07
| | | | | | | And only set this for tracker products; other products place state in separate state packets Signed-off-by: Keith Packard <keithp@keithp.com>
* Set version to 1.3.2.31.3.2.3Keith Packard2014-06-07
| | | | | | Mayhem 2014 Saturday 2014-6-7 Signed-off-by: Keith Packard <keithp@keithp.com>
* telegps: Track graph windows as one of the TeleGPS windowsKeith Packard2014-06-07
| | | | | | | TeleGPS exits when the number of windows goes to zero; track graphing windows in addition to the usual flight monitoring windows. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Fix crash when initializing site map cacheKeith Packard2014-06-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Add GPS altitude as a possible graph valueKeith Packard2014-06-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altosuilib: Show GPS instead of (missing) flight data for TeleGPS graphsKeith Packard2014-06-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Record whether flight data includes sensor values in AltosFlightStatsKeith Packard2014-06-07
| | | | | | Provide a way to elide the usual flight data from a graph for TeleGPS Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Add TeleGPS log parsing codeKeith Packard2014-06-07
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: All products with logging have the 'l' commandKeith Packard2014-06-07
| | | | | | | | Instead of listing products with the 'l' command, just exclude products that don't have logging from using the 'l' command to collect the number of stored flights. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Switch TeleGPS to GPS logging formatKeith Packard2014-06-07
| | | | | | It's customized for TeleGPS uses Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Update other CONFIG_EEPROM users to set LOG_ERASE_MARKKeith Packard2014-06-07
| | | | | | | All products placing config and erase marks in on-CPU EEPROM needs to configure the erase code correctly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Write tracker logging from tracker thread directlyKeith Packard2014-06-07
| | | | | | Also, logs 8 pre-launch GPS packets so we can get the ground position. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Write current flight state to GPS data from GPS driversKeith Packard2014-06-07
| | | | | | | This will be useful with TeleGPS which has no other packet containing flight state. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add TeleGPS logging formatKeith Packard2014-06-07
| | | | | | | | | | | | | This is mostly like the mega format, but places the flight state in a spare byte of the GPS data and writes the gps starting location to the flight packet. Log data is written by the main tracker thread; there's no reason for a separate thread given the GPS update rate and the lack of flight controls. This means ao_log_gps has an API to be called from there, rather than a thread to run. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telemega-v1.0: Adjust config params to make flight erase workKeith Packard2014-06-07
| | | | | | | | | | | | | | | Flight erase records are supposed to be written after the ao_config to eeprom in telemega. They were getting written in the middle of one of the pyro channel config blocks. Put a bunch of space between the two by making the config max 1024 bytes instead of 128 bytes. Set the log erase marker to 0x55 -- eeprom comes from the factory as 0x00, so we use any value other than 0x55 to indicate 'unused' erase slots. Save space for more flight erase blocks; we've got plenty. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Clear out eeprom erase records when writing entry 0Keith Packard2014-06-07
| | | | | | | | | | When writing config/erase to eeprom, there's no 'erase' operation as on-chip eeprom is writable at a byte level. As such, we can't tell when the erase blocks get reset when the config gets written. When this happens, erase block 0 gets written explicitly, so just use that call to trigger explicit erasing of the data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow value other than 0 for marking erased flightsKeith Packard2014-06-07
| | | | | | | on-chip eeprom doesn't erase to 0xff, so let TeleMega use a different value. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Allow AO_CONFIG_MAX_SIZE to be configured. Validate it.Keith Packard2014-06-07
| | | | | | | | | TeleMega config is 200 bytes. AO_CONFIG_MAX_SIZE was 128. That didn't work out well when logging erased flight information. Allow TeleMega to use a larger value (1k), and then do a compiler hack to make sure the defined value is at least as large as the ao_config structure. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move ao_tracker.c to kernelKeith Packard2014-06-07
| | | | | | Doesn't make sense to be in product Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add telegps-v1.0 code and loader1.3.2.2Keith Packard2014-06-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v0.3: Remove ao_flight_number from main programKeith Packard2014-06-05
| | | | | | We've got logging enabled now Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v0.3: Disable APRS by default. Set log max to 1MKeith Packard2014-06-05
| | | | | | And adjust default radio cal to be a bit closer Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Force telemetry on by default for v0.3 TeleGPS boardsKeith Packard2014-06-05
| | | | | | | These don't have a USB connect indicator, so just turn on telemetry by default Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/lpc: HAS_USB_CONNECT has been changed to mean a custom pinKeith Packard2014-06-05
| | | | | | | | The LPC stuff isn't actually very useful and TeleGPS uses a custom pin instead, and was using HAS_USB_CONNECT to mean the same thing. That wasn't good. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix config to set default log size for all devices with logKeith Packard2014-06-05
| | | | | | Not just devices with flight Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add AO_LOG_FLIGHT packet to TeleGPS logsKeith Packard2014-06-05
| | | | | | This encodes the flight number for tracking of data files. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telegps-v0.3: Add tracker taskKeith Packard2014-06-05
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>