UKHAS Wiki

UK High Altitude Society

User Tools

Site Tools


projects:high_altitude_slug:software:protocol

This is an old revision of the document!


Protocol documentation

This is for coordinating our development.

Basics

First two bytes contain the command. The next two bytes is the length of the data, then the rest is data.

Commands

We have a 16 unsigned integer for commands:

Human messages (0 - 9)

  • [0 - 9] CMD_MESSAGE_[0-9] string - Human messages. 0 is lowest priority, 9 is highest.

All processes (10 - 4999)

  • 10 CMD_STATUS int - Status of flight has changed, one of:
    • 0 - Flight not started
    • 1 - Ascent
    • 2 - Descent
    • 3 - Descent with parachute released
    • 4 - Landed
  • 11 CMD_GPS_DATA struct gps_data - GPS data
  • 12 CMD_THERMOPILE_DATA struct thermopile_data - Thermopile data
  • 13 CMD_PARACHUTE - Parachute released
  • 14 CMD_PARACHUTE_ACTIVATE - Command sent to release the parachute
  • 15 CMD_CUTDOWN - Glider has been cutdown
  • 16 CMD_CUTDOWN_ACTIVATE - Command sent to cutdown the glider

GPS reader (5000 - 5999)

Flight management (6000 - 6999)

Roll control (7000 - 7999)

  • 7000 CMD_DESIRED_HEADING double - The desired heading calculated by the flight management.

Pitch control (8000 - 8999)

projects/high_altitude_slug/software/protocol.1153183840.txt.gz · Last modified: 2008/07/19 23:31 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki