UAT 458 Indoor Autonomous UAS and Navigation Technology

Worksheet 2 Configure sources and prove them by walk test

Lab 6 hAssesses CLO2, CLO1

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

  1. Configure three source sets as in the lesson table, adjusted to the group's sensors, and set RCx_OPTION = 90
  2. Save complete parameter files before and after, with the firmware version
  3. Bench-test switching through all three positions, wait 10 seconds, then check events 85 to 87 and XKFS in the log
  4. Write an ENU-to-NED converter and test it by moving the drone 1 m north
  5. Walk a measured rectangle at least three times and compute the closure error
  6. If optical flow is available, apply Example 1 to a real log and compare textured and plain floors

Record of results

Table 1 EKF source sets configured
ParameterSet 1Set 2Set 3Reason
Table 2 Source-switching and frame-converter tests
TestExpected resultObserved (log number or message)Pass or fail
Table 3 Walk-test results around the rectangle
LapPath length (m)End N (m)End E (m)Closure error (m)Percent of distance

Questions

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

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

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

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

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

CLO2 Configure an autopilot for GNSS-free flight, covering EKF sources, source switching, SLAM maps, altitude and position holding and obstacle avoidance, and check quality from logs. CLO1 Explain the limits of operating in GNSS-denied environments and choose visual, LiDAR and inertial position sources to suit each indoor zone. (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