Skip to content

ToolboxPlane/FlightComputer

Repository files navigation

Build Status

FlightComputer

All the modules running on the Raspberry Pi.

Output Package

Flightcontroller

The Flightcontroller-Package is a 10bit, 4 channel package.

Channel Content
0 Power (between 0 and 1023)
1 Pitch-Target + 180
2 Roll-Target + 180
3 Angle To Start * 2 + 500

LoRa

The Lora-Package is a 10bit, 4 channel package.

Channel Content
0 -RSSI
1 Altitude above ground
2 Angle to Start * 2 + 500
3 Distance to Start / 10

Network

The Network-Package is a 12bit, 16 channel package.

Channel Content
0 -RSSI
1 Altitude above ground * 40
2 Angle to Start * 10 + 2000
3 Distance to Start
4 Roll * 10 + 2000
5 Pitch * 10 + 2000
6 Yaw * 10 + 2000
7 Speed * 40
8 Altitude * 4
9 Acc-X * 40 + 2000
10 Acc-Y * 40 + 2000
11 Acc-Z * 40 + 2000
12 VCC * 200
13 Empty
14 Empty
15 Empty

Recording

Recordings are saved as pseudo-csv files. The first line is the recording start time as a unix timestamp (seconds since 1970). The second line is the textual representation of the column names this is used for compatibility and human readability. As a convention the first column is always the timestamp. All following lines are data.

Waypoint file Format

The waypoint file is a special type of recording. Each line consists of a latitude, a longitude, an altitude, the maximum distance to the waypoint (all doubles), and a integer wheter the plane is allowed to land (1 or 0).

Example

0
Timestamp; Lat; Lon; Altitude; MaxDelta; LandingAllowed
0; 0; 0; 17; 10; 0
0; 10; 10; 0; 5; 1