summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* | | micropeak: Oops. Lost the call to actually start downloading dataKeith Packard2013-04-14
| |/ |/| | | | | | | | | Lost when adding the 'help' text somehow; presumably a debugging issue. Signed-off-by: Keith Packard <keithp@keithp.com>
* | Windows: Add all of the AltusMetrum USB IDs to telemetrum.infKeith Packard2013-04-13
| | | | | | | | | | | | This should make Windows load the driver Signed-off-by: Keith Packard <keithp@keithp.com>
* | libaltos: Retry Windows serial port open five timesKeith Packard2013-04-12
| | | | | | | | | | | | Maybe this helps? Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Make sure the packet format is set reasonably for radio testKeith Packard2013-04-12
| | | | | | | | | | | | Dunno if this matters, but it might as well be set reasonably Signed-off-by: Keith Packard <keithp@keithp.com>
* | altoslib: Remove spurious debug messageKeith Packard2013-04-12
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Don't include bufio debug commands by defaultKeith Packard2013-04-12
| | | | | | | | | | | | We shouldn't need these Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Stick a mutex around FAT operationsKeith Packard2013-04-12
| | | | | | | | | | | | This allows the command line and logging operations to occur safely in parallel Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Delay while waking up SD card a bitKeith Packard2013-04-12
|/ | | | | | | | This seems to make bringing the card from idle to ready mode more reliable. If you spam the card with requests, it will eventually whinge and shut down communications. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosdroid: Hook up the position listenersKeith Packard2013-04-11
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* doc: Add an outline of an AltosDroid chapterKeith Packard2013-04-09
| | | | | | Not much content yet, but I think this is pretty much the sections we need Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui: Adapt monitor idle to new AltosListenerStateKeith Packard2013-04-09
| | | | | | Move the receiver battery monitoring to the new spot Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib/altosui: Carry receiver status around in AltosListenerStateKeith Packard2013-04-09
| | | | | | | | | | This moves the crc_errors into the new structure and adds a receiver battery voltage value there as well. Now the receiver status can be monitored separately from the flight status. That also means that code receiving state updates should be prepared to accept missing listener or flight state values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Monitor battery voltage on telebtKeith Packard2013-04-09
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altosBdale Garbee2013-04-08
|\
| * altos: Create telebt-v1.0 product. Remove old telebt productsKeith Packard2013-04-08
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: Create telebt-v1.0 product. Remove old telebt productsKeith Packard2013-04-08
|/ | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Try RDF mode for TX calibrationKeith Packard2013-04-06
| | | | | | | | Trying to get the radio to stop modulating the carrier when calibrating the radio, we'll try RDF mode which says no preamble or sync data. This might shift the frequency though? Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Graph TeleMini flights without crashingKeith Packard2013-04-02
| | | | | | | Adding maps to the graph UI failed to check for missing GPS data in a couple of places causing crashes when fed a TeleMini file. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Display current GPS in 'pad' tab for 'startup' statenKeith Packard2013-04-02
| | | | | | | This is the state for telegps, so just display the current GPS info as we don't know where it started at. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Hide flight-related tabs for telegpsKeith Packard2013-04-02
| | | | | | Products without a flight state don't need ascent/descent/landed tabs. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Don't display missing sensor dataKeith Packard2013-04-02
| | | | | | | For devices without sensors, don't display temperature, barometric and accelerometer-derived values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altoslib: Make any incoming telem packet update the RSSI valueKeith Packard2013-04-02
| | | | | | | | Every packet has RSSI info, so use the latest one available. This makes telegps RSSI available as it never sends sensor packets (having no sensors). Signed-off-by: Keith Packard <keithp@keithp.com>
* Set telegps USB id to 0025Keith Packard2013-04-02
| | | | | | It was accidentally using the same ID as megadongle... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Shorten SD initialization timeouts.Keith Packard2013-04-02
| | | | | | This makes failure when no card is present much quicker. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Horrible kludge -- disable radio while talking with SD cardKeith Packard2013-04-01
| | | | | | | The SD card really doesn't like the RFI generated by our enormous radio, so just lock the radio out while working with the card. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add defines for the specific pins used for telegps SPIKeith Packard2013-04-01
| | | | | | These aren't needed at this point, but who knows? Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Retry SD card I/O. Use time for timeouts instead of countsKeith Packard2013-04-01
| | | | | | | | | | Sometimes I/O operations may fail; give the card a chance and retry the operation in case it works the next time. Replace the loop counts with loops that check the clock so that they'll have consistent timeouts even if the CPU or SPI speed changes. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Provide build hooks for sampling profiler in telegpsKeith Packard2013-04-01
| | | | | | Might prove useful if the CPU is ever doing anything? Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add a FAT test that re-writes the same file multiple timesKeith Packard2013-04-01
| | | | | | This caught a bunch of FAT cluster chain allocation bugs. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Support open on multiple simultaneous FAT filesKeith Packard2013-04-01
| | | | | | | Need to be able to see the contents of a log file, even if the logger is running. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make sure FAT cluster allocation works for size zero filesKeith Packard2013-04-01
| | | | | | | There were some rounding errors mis-computing the number of clusters needed, and the logic to figure out how to re-connect a chain was broken. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: let FAT tracing work in ao_fat_test as neededKeith Packard2013-04-01
| | | | | | | This allows the FAT DBG hooks to be enabled even if some other module turned DBG off. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Flush the on-board mega log after every sample interval.Keith Packard2013-04-01
| | | | | | | | SPI flash parts don't need flushing, but the SD card does. Make sure the SD card contents are sane after every logging interval has passed by flushing all dirty blocks to the device. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Create the log file if it doesn't already existKeith Packard2013-03-31
| | | | | | open will return failure unless the file already exists. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Make ao_fat_readdir return real error values instead of 1/0Keith Packard2013-03-31
| | | | | | | This way, we can distinguish between 'something bad happened' and 'you're at the end of the directory'. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Increase SD card timeout at startup timeKeith Packard2013-03-31
| | | | | | | Sometimes the SD card takes 'a while' to go into idle mode at first power up. Just hang around waiting for a long time. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix command-line FAT filename parsingKeith Packard2013-03-31
| | | | | | Pad extension with spaces Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-tools/ao-stmload: Be smarter about ELF parsing. Retry open on failure.Keith Packard2013-03-31
| | | | | | | | | | | | | | | | | Figuring out what goes where is tricky; turns out we want to pull all of the sections that map inside any program area that is supposed to be loaded from the file. So, we walk the program headers, then walk all of the section headers looking for those that suck data from the same portion of the file. Compute where in ROM each relevant section goes and build a full ROM image in memory using that. This patch also adds code to close and re-open the device if the first open failed to do what we want. Much nicer to have the computer figure out when the open succeeded rather than having people re-run the app. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Unmount file system after each testing pass in ao_fat_testKeith Packard2013-03-31
| | | | | | Otherwise, we use stale data and 'bad things' happen. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Don't add fat commands when building ao_fat_testKeith Packard2013-03-31
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Always check for idle IN buffer before sendingKeith Packard2013-03-31
| | | | | | | | | | | | | | Unlike the AVR and CC1111 USB drivers, the STM usb driver queues IN bytes in a local buffer instead of in the driver; this means that the driver is queuing bytes while the previous IN packet is queued for the host, which allows for overlapping execution. It also means that when the local buffer is full, we must check to see if the host has picked up the previous IN packet before trying to queue another IN packet for transmission. This is done by always waiting for the IN buffer to be ready before sending data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Add debugging mechanism to STM USB driverKeith Packard2013-03-31
| | | | | | | | This adds a pile of debugging hooks to the USB driver to try and isolate various lockup-related issues. It's all disabled by default, of course. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Do not release interrupts from any pollchar functionKeith Packard2013-03-31
| | | | | | | | | | | getchar relies on interrupts being blocked across the pollchar calls and into the sleep call or it may go to sleep with data pending. This prefixes all pollchar functions with _ to indicate that they are to be called with interrupts blocked and eliminates all interrupt manipulation calls from within the pollchar functions. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add sdcard read/write tracingKeith Packard2013-03-31
| | | | | | This just dumps info in trace mode about read and write commands Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move fat mount information to separate command.Keith Packard2013-03-31
| | | | | | | This makes the mount report precise error information and then prints that with the 'M' command. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Disable CC115L debug commandsKeith Packard2013-03-31
| | | | | | now that it appears to work, leave these disabled by default Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add SD card writing functionKeith Packard2013-03-31
| | | | | | | Now that the FAT code seems to be operational, go back and add SD writing. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add logging and telem to telegpsKeith Packard2013-03-30
| | | | | | | | | | | | This turns on telemetry, APRS, RDF and data logging for telegps. Data is logged as soon as GPS has a date to create the right filename, using files of the form YYYYMMDD.LOG which just barely fits in a FAT filename. Telemetry/RDF/APRS are all separately controllable. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Export ao_fat_sync and ao_fat_full functionsKeith Packard2013-03-30
| | | | | | | ao_fat_sync() flushes the bufio data to disk along with any fsinfo changes. ao_fat_full() returns whether the file system is full. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Lock cc115l radio mutex when using global radio valuesKeith Packard2013-03-30
| | | | | | | This moves the locking up above the global state variable uses so that multiple radio users (as if we had any) won't collide. Signed-off-by: Keith Packard <keithp@keithp.com>