UAT 105 Digital Technology and Networks
Worksheet 2 Exploring computers and buses
Objective
Compare the two kinds of computer on a drone, identify the flight controller's buses and compute a telemetry radio's data budget
Equipment and materials
- Raspberry Pi or a Linux computer
- Pixhawk 6X page in the PX4 user guide
- SITL simulator
- MAVLink common.xml documentation
Safety
- Desk work only; no flying
- Power off before connecting or unplugging board cables
Steps
- List every Pixhawk 6X port with its bus type (UART, I²C, CAN, internal SPI) and compare with Figure 2
- Use lscpu and free -h to see cores, clock and RAM, and compare with the flight controller
- Run SITL and record CPU and RAM use during the simulation
- Find the payload sizes of HEARTBEAT, ATTITUDE and GLOBAL_POSITION_INT in common.xml
- Compute the percentage of a 57600 baud radio used at 1, 10 and 4 Hz
Record of results
| Port name | Bus type | Wires | Device it serves | Matches Figure 2? |
|---|---|---|---|---|
| Item | Flight controller (Pixhawk 6X) | Group's Linux computer | Unit |
|---|---|---|---|
| Message | Payload (bytes) | Frame size (bytes) | Rate (Hz) | Bytes per second | Percent of capacity |
|---|---|---|---|---|---|
Questions
Why are the IMU and barometer on internal SPI while GNSS and the telemetry radio use UART? Explain from the bus properties in Table 1.
From Table 2, how many times more RAM and clock speed does the Linux computer have than the flight controller? If it is that much faster, why should it not drive the motors directly?
What percentage of capacity does the Table 3 budget use? What would you get if you wrongly divided the baud rate by 8 instead of 10, and why is that error dangerous when a design runs close to capacity?
If the team wants ATTITUDE at 50 Hz, what is the new budget, is there still enough headroom, and what is the headroom for?
Check before you hand in
What to hand in
- Port and bus table
- Comparison table of the two computers
- Data budget calculation with working