UAT 105 Digital Technology and Networks

Worksheet 2 Exploring computers and buses

Lab 6 hAssesses CLO1

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

  1. List every Pixhawk 6X port with its bus type (UART, I²C, CAN, internal SPI) and compare with Figure 2
  2. Use lscpu and free -h to see cores, clock and RAM, and compare with the flight controller
  3. Run SITL and record CPU and RAM use during the simulation
  4. Find the payload sizes of HEARTBEAT, ATTITUDE and GLOBAL_POSITION_INT in common.xml
  5. Compute the percentage of a 57600 baud radio used at 1, 10 and 4 Hz

Record of results

Table 1 Pixhawk 6X ports and bus types
Port nameBus typeWiresDevice it servesMatches Figure 2?
Table 2 Flight controller compared with the Linux computer, and SITL load
ItemFlight controller (Pixhawk 6X)Group's Linux computerUnit
Table 3 Data budget of a 57600 baud telemetry radio
MessagePayload (bytes)Frame size (bytes)Rate (Hz)Bytes per secondPercent of capacity

Questions

  1. 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.

  2. 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?

  3. 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?

  4. 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

CLO1 Explain digital systems and basic computer architecture. (CLOs are a web-team draft; the course owner sets the final ones.)

Instructors: answers and teaching notes for this worksheet are in the teaching pack