| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
Converts between pressure and altitude
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
| |
ao-eeprom used to be a TeleMetrum v0.2 specific tool for fetching
eeprom contents from that device. ao-dumpflash handles that case now.
ao-eeprom now parses .eeprom files and displays their contents.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
None of these appear likely to have caused actual problems.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
| |
Skip sections with size 0, or which are of type SHT_NOBITS or which
don't have the SHF_ALLOC flag set.
This avoids crashing on sections which don't have any data to copy.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
Clear the temporary block to 0xff before copying in the target data so
that any unused bytes end up being left at 0xff instead of inheriting
whatever data was in the block before.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
| |
Instead of blindly loading firmware, go get the old device's name and
make sure it matches the new firmware.
Add --force option to allow this to be overridden.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
This constructs a raw binary or DFU format file for use with dfu-util,
which can be used with a bare STM processor to load code before the
boot loader is available.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This takes two images and constructs a third containing the union of
the contents along with 0xff bytes for any area between them.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
The --wait option hangs around until a suitable device appears, so
that you can test a pile of µPusb devices without needing to
constantly interact with the command line.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
chaoskey doesn't advertise itself as a modem, so the kernel doesn't
allocate a tty device.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This waits forever for USB writes to complete, instead of timing out
after five seconds. Useful when debugging the device.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Add state tracking so the telemetry sending code works.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
These make it possible to encode/decode GPS data from telemetry and
eeprom files
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This takes altitude and computes the 'normal' temperature for
that.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
This reverts commit 428d09294ba0395fedd71346ad00fd90a4cdde97.
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
| |
This writes raw bytes to the USB port; useful for sending binary data
for flashing or the upcoming flight test stuff.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
Remove unused 'default_addr' field. Use named initializers when
setting up the struct.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
For some reason, USB devices take 'a while' to become usable; instead
of bailing immediately, sit around waiting to see if the device
becomes usable if we get an EBUSY or EACCES error.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
to be shared with ao-usbload
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
|
| |
|
|
|
|
|
|
| |
This needs to be shared between ao-stmload and ao-usbload
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
ao-elftohex converts an elf file into a hex file so that we can load
it with java.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
| |
|
|
|
|
|
|
|
| |
Pulls the elf stuff out of ao-stmload, change the hex stuff into ao_
routines.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
| |
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
This dumps out the serial communication so you can see where things go wrong.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
|
| |
These place the upper 16 bits of the address in a special record. That
requires handling records in file order, so don't sort them in address
order anymore, instead find the bounds of the loaded data by scanning
them all.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Dump non-ascii characters in hex format.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Set baud rate to 9600, look for FTDI-style names
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
This takes a telemetry structure and generates a string version
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This program dumps the entire flash contents of an AltOS device to
allow for external analysis.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This is a tool to parse ao-mega eeprom files; not sure it'll be that
useful, and it's certainly not usable *yet*.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This lets it communicate with the ROM code which boots at 4800 baud
instead of 9600 baud.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Parse the new packet formats
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Just pretends they're TM packets for now
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
This prints all of the basic telemetrum messages now.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
This reads telem files and displays them in ascii form. It's not done,
and it's not documented, but it's a start.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
These tools have all been supplanted by altosui at this point, and
keeping them around increases the build dependencies by quite a lot.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
the list of devices was getting realloced for each new device, but
that realloc was too small.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
| |
Sets the channel when downloading data with the -R option.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
| |
The RSSI data from the hardware reports in 1/2 dBm increments, and so
must be divided to report plain RSSI numbers.
Signed-off-by: Keith Packard <keithp@keithp.com>
|
|
|
|
|
|
|
|
| |
When looking for a board by product name, just look at the prefix of
the name instead of requiring an exact match. This will allow products
to have board version suffixes.
Signed-off-by: Keith Packard <keithp@keithp.com>
|