UAT 458 Indoor Autonomous UAS and Navigation Technology
Worksheet 2 Configure sources and prove them by walk test
Objective
Configure EKF source sets and switching, convert frames correctly and prove the set-up with a walk test before flight
Equipment and materials
- Computer with ArduPilot or PX4 SITL
- Training drone with propellers removed and the group's indoor position source
- Transmitter with a three-position switch
- Measuring tape and floor marking tape
Safety
- Propellers stay off throughout; bench work and walking only
- Save the parameter file before every change
- Take care with cables and the lithium battery while walking
Steps
- Configure three source sets as in the lesson table, adjusted to the group's sensors, and set RCx_OPTION = 90
- Save complete parameter files before and after, with the firmware version
- Bench-test switching through all three positions, wait 10 seconds, then check events 85 to 87 and XKFS in the log
- Write an ENU-to-NED converter and test it by moving the drone 1 m north
- Walk a measured rectangle at least three times and compute the closure error
- If optical flow is available, apply Example 1 to a real log and compare textured and plain floors
Record of results
| Parameter | Set 1 | Set 2 | Set 3 | Reason |
|---|---|---|---|---|
| Test | Expected result | Observed (log number or message) | Pass or fail |
|---|---|---|---|
| Lap | Path length (m) | End N (m) | End E (m) | Closure error (m) | Percent of distance |
|---|---|---|---|---|---|
Questions
Apply your group's converter to the ENU position x = 3.0, y = 4.0, z = 1.5 m with heading 30°. What is it in NED, and if it were not converted, how would the autopilot misread the position and the direction of motion?
If the walk-test track on screen came out mirrored or rotated 90° from the real shape, what does that say about the configuration, and what must be checked before the propellers go on?
If optical flow is available, how did the computed velocity differ over a textured and a plain floor? Explain with the quality values and the effect of a wrong height.
An uncompensated 80 ms delay in the external position: how large is the position error at 0.5 and at 3.0 m/s, and how should the group limit speed until the delay is set correctly?
Why must the optical-flow-and-compass set be restricted to certain zones, and where did your group write that restriction?
Check before you hand in
What to hand in
- Parameter files before and after, with the source-set table
- Source-switching evidence from the log
- Frame converter code and test result
- Walk-test results and closure error