X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=AltOS%2Fdoc%2Fcompanion.html;h=4a3509bdd47fb2cbb6cefddadd9451b3ab42986b;hb=c1bc6447d1b2e9f7c5fc648184f0a47632e9c946;hp=6936953d03eff364a095985fb6d90bf5025bb54c;hpb=f655bd3ba4385300e7d5b63af452119d481e82d2;p=web%2Faltusmetrum diff --git a/AltOS/doc/companion.html b/AltOS/doc/companion.html index 6936953..4a3509b 100644 --- a/AltOS/doc/companion.html +++ b/AltOS/doc/companion.html @@ -1,10 +1,10 @@ -
Copyright © 2012 Keith Packard
+
Copyright © 2012 Keith Packard
This document is released under the terms of the Creative Commons ShareAlike 3.0 license. -
Revision History | |
---|---|
Revision 0.1 | 13 January 2012 |
Initial content |
Table of Contents
Revision History | |
---|---|
Revision 0.1 | 13 January 2012 |
Initial content |
Table of Contents
Many Altus Metrum products come with an eight pin Micro MaTch connector, called the Companion Port. This is often used to program devices using a programming cable. However, it can also @@ -12,20 +12,20 @@ (hence the name).
The Companion Port provides two different functions: -
Power. Both battery-level and 3.3V regulated power are available. Note that the amount of regulated power is not huge; TeleMetrum contains a 150mA regulator and uses, at peak, about 120mA or so. For applications needing more than a few dozen mA, placing a separate regulator on them and using the battery for power is probably a good idea. -
SPI. The flight computer operates as a SPI master, using a protocol defined in this document. Companion boards provide a matching SPI slave implementation which supplies telemetry information for the radio downlink during flight -
-
+
The flight computer implements a SPI master communications channel over the companion port, and uses this to get information about a connected companion board and then to get @@ -42,11 +42,11 @@
Because of the limits of the AVR processors used in the first two companion boards, the SPI data rate is set to 187.5kbaud. -
This section first defines the command message format sent from the flight computer to the companion board, and then the various reply message formats for each type of command message. -
Table 1. Companion Command Message
Offset | Data Type | Name | Description |
---|---|---|---|
0 | uint8_t | command | Command identifier |
1 | uint8_t | flight_state | Current flight computer state |
2 | uint16_t | tick | Flight computer clock (100 ticks/second) |
4 | uint16_t | serial | Flight computer serial number |
6 | uint16_t | flight | Flight number |
8 |
Table 2. Companion Command Identifiers