UAT 366 Indoor Autonomous and Multi-Unmanned Aircraft Systems
Worksheet 1 An error budget in the lab
Objective
Set up indoor positioning, feed external position to PX4, measure each error source, build an error budget and set tag spacing
Equipment and materials
- Indoor flight room with safety netting
- UWB anchors or motion-capture cameras and AprilTags
- PX4 training drone with a VIO camera
- Tape measure or laser rangefinder
- Computer with QGroundControl, Python and the module 1 example code
Safety
- Fly inside the netted room at low speed with a pilot ready to take manual control
- No people inside the flight area during tests
- Check the position-loss fallback mode before the first flight
Steps
- Define the room frame; survey UWB anchors or cameras and AprilTags
- Feed external position to PX4 per the guide; check the rate and set EKF2_EV_CTRL
- Try three EKF2_EV_DELAY values; compare error on constant-speed out-and-back flights
- Measure each source's error and build the budget with Example 1
- Fly a long line on VIO only, measure drift and set tag spacing with Example 2
Record of results
| Point (anchor, camera or tag) | x run 1 / 2 (m) | y run 1 / 2 (m) | z run 1 / 2 (m) | Largest run-to-run difference (m) |
|---|---|---|---|---|
| EKF2_EV_DELAY (ms) | Speed (m/s) | Error outbound (m) | Error return (m) | Outbound minus return (m) |
|---|---|---|---|---|
| Error source or item | Measured or computed value | Unit | Share of variance (%) | How obtained |
|---|---|---|---|---|
Questions
From Table 3, which source has the largest share of variance? If you could improve only one source, which would you pick, and why does shrinking the smallest source barely help?
In Table 2, do the outbound and return errors have opposite signs? Use e = v·Δt to estimate the uncompensated latency from the difference between the two legs, and say which EKF2_EV_DELAY value is best.
From the VIO drift you measured (percent of distance), how far apart may tags be to keep the error below 0.20 m and below 0.10 m? Why does the lesson recommend fusing with UWB instead of adding more tags?
If the aisle is 2.5 m wide and the drone 0.8 m wide, is three times your total standard deviation still inside the margin on each side? Why compare against several standard deviations rather than one?
Check before you hand in
What to hand in
- Room frame and anchor or camera positions
- Error table by EKF2_EV_DELAY
- Error budget with code
- Proposed tag spacing with reasons