UAT 206 Fundamentals of Control and Autopilot Systems
Worksheet 4 Exploring parameters and modes in SITL
Objective
Tie each control loop to its parameters and flight modes, and practise traceable parameter-file management
Equipment and materials
- PX4 or ArduPilot SITL
- QGroundControl or Mission Planner
- Python and the module 4 example code
Safety
- Simulation only; no real flights
- Never load experimental parameter files onto a real drone
Steps
- Start SITL, connect the GCS and save the default parameter file
- Find the parameters for every loop in Figure 1, noting defaults and units
- Fly each mode and record what each stick axis means
- Raise the rate-loop P by 20% steps, save files and compare with Example 2
- Use Compare Params or compare by hand before loading the originals back
Record of results
| Loop | Parameter name | Default value | Unit | Meaning |
|---|---|---|---|---|
| Mode | Active loops | Throttle stick | Roll and pitch stick | When sticks are released |
|---|---|---|---|---|
| File name | Rate-loop P | Change from previous file (%) | Change from original (%) | Needs review? |
|---|---|---|---|---|
Questions
From Table 2, if the drone wanders only in Position and Mission but Altitude is fine, which loop is suspect? And if it shakes in every mode?
Each step adds only 20%, yet the third file differs from the original by much more. Why does the choice of reference file matter when comparing?
Why must experimental parameter files never be loaded onto a real drone, and why not copy parameters across firmware versions or between drones?
Give one in-flight mode change where the throttle stick's meaning changes, and say what the drone does if the pilot does not know.
Check before you hand in
What to hand in
- Parameter table for every loop
- Mode and stick table
- File comparison and proof of restore