AltOS

AltOS is the name of Keith's firmware "operating system" for TeleMetrum and TeleDongle.

In addition to the firmware for TeleMetrum and TeleDongle boards, the AltOS source tree also includes AltosUI, which provides for flight monitoring, post-flight analysis, device configuration and firmware updating. AltosUI runs on Linux, Mac OS X and Windows. It's written in Java and offers the same functionality and interface on all three platforms. A small platform-specific library communicates with the USB interface on the Altus Metrum devices.

There are also Linux-specific tools that provide lower level access to the devices which are useful for developing firmware for the devices.

We maintain a list of launch site GPS coordinates. If your favorite launch site isn't included, please let us know!

Available Versions

There is a single manual for all Altus Metrum products, which is available in html and pdf formats.

We also have an AltOS internals document for programmers in html and pdf formats, and a document describing the AltOS over the radio protocol in html and pdf formats.


Version 1.0.3 is a minor release adding support for TeleMetrum v1.2 boards

AltOS Firmware Changes

  • TeleMetrum version 1.2 is functionally identical to version 1.1, the only change required in the firmware was to adjust the product name reported over the USB link.


Version 1.0.2 is a bugfix release, addressing a minor issue found in version 1.0.1

AltOS Firmware Changes

  • On TeleMetrum, wait to enable the radio link for remote command operations until the device enters either idle or invalid mode. Ticket #26.
  • On TeleMini, delay during reboot for one second to give the TeleDongle time to leave radio link mode. Otherwise, the TeleDongle would send another radio link packet out while the TeleMini was rebooting, sending TeleMini right back to idle mode. Ticket #27.


Version 1.0.1 is a major release, adding support for the TeleMini device and lots of new AltosUI features

AltOS Firmware Changes

  • Add TeleMini v1.0 support. Firmware images for TeleMini are included in AltOS releases.
  • Change telemetry to be encoded in multiple 32-byte packets. This enables support for TeleMini and other devices without requiring further updates to the TeleDongle firmware.
  • Support operation of TeleMetrum with the antenna pointing aft. Previous firmware versions required the antenna to be pointing upwards, now there is a configuration option allowing the antenna to point aft, to aid installation in some airframes.
  • Ability to disable telemetry. For airframes where an antenna just isn't possible, or where radio transmissions might cause trouble with other electronics, there's a configuration option to disable all telemetry. Note that the board will still enable the radio link in idle mode.
  • Arbitrary frequency selection. The radios in Altus Metrum devices can be programmed to a wide range of frequencies, so instead of limiting devices to 10 pre-selected 'channels', the new firmware allows the user to choose any frequency in the 70cm band. Note that the RF matching circuit on the boards is tuned for around 435MHz, so frequencies far from that may reduce the available range.
  • Kalman-filter based flight-tracking. The model based sensor fusion approach of a Kalman filter means that AltOS now computes apogee much more accurately than before, generally within a fraction of a second. In addition, this approach allows the baro-only TeleMini device to correctly identify Mach transitions, avoiding the error-prone selection of a Mach delay.

AltosUI Changes

  • Wait for altimeter when using packet mode. Instead of quicly timing out when trying to initialize a packet mode configuration connection, AltosUI now waits indefinitely for the remote device to appear, providing a cancel button should the user get bored. This is necessary as the TeleMini can only be placed in "Idle" mode if AltosUI is polling it.
  • Add main/apogee voltage graphs to the data plot. This provides a visual indication if the igniters fail before being fired.
  • Scan for altimeter devices by watching the defined telemetry frequencies. This avoids the problem of remembering what frequency a device was configured to use, which is especially important with TeleMini which does not include a USB connection.
  • Monitor altimeter state in "Idle" mode. This provides much of the information presented in the "Pad" dialog from the Monitor Flight command, monitoring the igniters, battery and GPS status withing requiring the flight computer to be armed and ready for flight.
  • Pre-load map images from home. For those launch sites which don't provide free Wi-Fi, this allows you to download the necessary satellite images given the location of the launch site. A list of known launch sites is maintained at altusmetrum.org which AltosUI downloads to populate a menu; if you've got a launch site not on that list, please send the name of it, latitude and longitude along with a link to the web site of the controlling club to the altusmetrum mailing list.
  • Flight statistics are now displayed in the Graph data window. These include max height/speed/accel, average descent rates and a few other bits of information. The Graph Data window can now be reached from the 'Landed' tab in the Monitor Flight window so you can immediately see the results of a flight.


Version 0.9.2 is an AltosUI bug-fix release, with no firmware changes.

  • Fix plotting problems due to missing file in the Mac OS install image.
  • Always read whole eeprom blocks, mark empty records invalid, display parsing errors to user.
  • Add software version to Configure AltosUI dialog


Version 0.9 adds a few new firmware features and accompanying AltosUI changes, along with new hardware support.

  • Support for TeleMetrum v1.1 hardware. Sources for the flash memory part used in v1.0 dried up, so v1.1 uses a different part which required a new driver and support for explicit flight log erasing.
  • Multiple flight log support. This stores more than one flight log in the on-board flash memory. It also requires the user to explicitly erase flights so that you won't lose flight logs just because you fly the same board twice in one day.
  • Telemetry support for devices with serial number >= 256. Previous versions used a telemetry packet format that provided only 8 bits for the device serial number. This change requires that both ends of the telemetry link be running the 0.9 firmware or they will not communicate.


Version 0.8 offers a major upgrade in the AltosUI interface. Significant new features include:

  • Post-flight graphing tool. This lets you explore the behaviour of your rocket after flight with a scroll-able and zoom-able chart showing the altitude, speed and acceleration of the airframe along with events recorded by the flight computer. You can export graphs to PNG files, or print them directly.
  • Real-time moving map which overlays the in-progress flight on satellite imagery fetched from Google Maps. This lets you see in pictures where your rocket has landed, allowing you to plan recovery activities more accurately.
  • Wireless recovery system testing. Prep your rocket for flight and test fire the deployment charges to make sure things work as expected. All without threading wires through holes in your airframe.
  • Optimized flight status displays. Each flight state now has it's own custom 'tab' in the flight monitoring window so you can focus on the most important details. Pre-flight, the system shows a set of red/green status indicators for battery voltage, apogee/main igniter continutity and GPS reception. Wait until they're all green and your rocket is ready for flight. There are also tabs for ascent, descent and landing along with the original tabular view of the data.
  • Monitor multiple flights simultaneously. If you have more than one TeleDongle, you can monitor a flight with each one on the same computer.
  • Automatic flight monitoring at startup. Plug TeleDongle into the machine before starting AltosUI and it will automatically connect to it and prepare to monitor a flight.
  • Exports Google Earth flight tracks. Using the Keyhole Markup Language (.kml) file format, this provides a 3D view of your rocket flight through the Google Earth program.

Source Code

The latest source, which may include unreleased work in progress, is always available from git.gag.com in the project fw/altos.

If you need to debug code on an Altus Metrum product, you may want our special version of SDCC containing a highly modified sdcdb with support for the cc1111 debugging interface, which you can find on git.gag.com in the project fw/sdcc. This is not necessary if you just want to rebuild AltOS and use it.

Future Plans

Bug reports, feature requests, and planning for AltOS releases happens on the Altus Metrum Trac Site.

A number of features are implemented or in process in the sources available in our publicly visible repository that are not part of the current stable release.

  • Motor characterization. Because TeleMetrum contains a high-resolution, high-frequency accelerometer, it is possible to take the data from that and compute an accurate thrust curve for the motor.

  • Comprehensive PDF and/or HTML -based flight report. Construct a complete report of the flight suitable for publication on the web that includes graphs of the flight and details about motor performance etc.

  • Publish flight data to the Altus Metrum web site. This will allow you to share your flight data with others, and let you download flights published by others.

There are any number of additions that could be made to this list; feel free to send along ideas that you’ve got. Of course, all of this software is licensed under the GNU General Public License, so you can get the source and hack on it in the comfort of your own home.

Platform Specific Notes

Linux

If you use Debian, you can simply install the 'altos' package from any Debian mirror, like so:

    apt-get update
    apt-get install altos

If you use Ubuntu, pre-built packages are available from this PPA maintained by Steve Conklin and friends.

If you use some other distribution of Linux, then a Linux package of our second-generation Java bits that should run on any distribution with a modern Java version is also available. Unlike the Debian pacakge, which depends on various libraries already part of the Debian distribution, this package includes a "fat" jar file with all of the Java libraries that aren't part of the basic Java runtime environment included, so it should "just work" on any system with Java 6. Development and testing is done with OpenJDK 6, but current downloads from java.com should be fine too.

If you'd rather build from source, our source tree includes documentation on how to build packages for various Linux systems such as Arch Linux, and the debian/ directory contains all the control files for building the Debian packages on other architectures or derivatives such as Ubuntu.

Bdale has also created a theme for GDM that he uses on his primary notebook, and the Simple Login Manager that he uses on all of his other machines and which is ideally suited for machines dedicated to AltOS ground station use. It includes a photo of a drag-race between nearly-identical rockets built by Keith and Bdale, that was the first time either of us gave TeleMetrum complete control of a rocket flight without some other backup! See the themes/ directory in the source tree (the themes are included in the Debian package).

Mac

A Mac OS X package that is compatible with versions 10.5 "Leopard" and later (including 10.6 "Snow Leopard") is available. The Mac operating system includes Java, and all Altus Metrum products show up as simple USB serial ports, so this should just work with no additional drivers or other dependency issues. Older versions of the Mac operating system, and even newer versions for PowerPC-based machines, come with Java version 5 or older, which is too old for use with Altus Metrum software. We know of no way to update the Java version other than upgrading to a newer operating system (for Intel based macs) or purchasing new hardware (for PowerPC based macs).

Windows

Our Windows package is known to work on at least some flavors of XP, Vista, and Windows 7 Enterprise. If you don't already have Java installed, download and install a current Java 6 version from java.com first. Then download our installer and run it. Windows already has the required USB serial device driver, and our package should do the right things to bind it to our devices, but if you get a complaint about the device being unrecognized, try pointing to the copy of the telemetrum.inf file included in the package directory manually.

License

The firmware and associated software are licensed GPL version 2