UAT 102 Applied Physics for Aircraft Technology
Worksheet 5 Comparing calculation, simulation and flight
Objective
Use SITL to test hover and climb, extract log data, compare with hand calculations and explain differences
Equipment and materials
- Computer with ArduPilot or PX4 SITL and a ground station
- Python or a spreadsheet to read logs
- Results from worksheets 3 and 4
- Lab drone (if available)
Safety
- The simulation part is computer work; no flying
- If flying for real, fly within CAAT conditions in visual line of sight under the lecturer's supervision; keep people clear
Steps
- Run SITL; take off, hover at 10 m, then climb at constant speed
- Extract current, voltage and height from the log
- Compute hover power and climb rate from the log
- Compare with hand calculations from modules 3 and 4
- If a real drone is available, fly the same mission and compare three sources
- Explain differences using 'When simulation and reality disagree'
Record of results
| Flight phase | Time window (s) | Mean voltage (V) | Mean current (A) | Power (W) | Climb rate (m/s) |
|---|---|---|---|---|---|
| Quantity | Hand calculation | SITL | Real flight (if any) | Difference (%) |
|---|---|---|---|---|
Questions
Which cause in 'When simulation and reality disagree' best explains the differences in Table 2? What evidence in the log supports it?
Using the lesson's Example 1 (2 kg drone, 22 N of thrust), find the height at t = 0.3 s with the Euler method at Δt = 0.1 s and 0.05 s and compare with the exact value. What does this say about choosing Δt in a simulator?
If the motors stop while hovering at 10 m in SITL, does a 2 kg drone with C_D A = 0.05 m² reach terminal velocity before hitting the ground? Show the calculation.
Does passing SITL tests mean the drone is ready for real flight? How should testing be staged?
Check before you hand in
What to hand in
- Log files and the script or spreadsheet
- Three-way comparison table
- Explanation of the differences