Teaching pack · UAT 205
A 15-week teaching plan, 5 worksheets, a scoring rubric and a map from the course description to the lessons, for instructors to evaluate and adapt before teaching.
Coverage of the course description
The lessons fully teach 12 of 12 description topics. Each topic lists the modules and lesson sections that teach it, and incomplete topics say what is missing.
| Description topic | Modules | Where it is taught | Status |
|---|---|---|---|
| Measurement principles | M1 | Module 1: the measurement chain, from sensor, conditioning and ADC to a value with its uncertainty | Covered |
| Sensor characteristics | M1 | Module 1: the measurement chain, range, resolution, sensitivity, nonlinearity, bandwidth and response time | Covered |
| Accuracy, precision and errors | M1M2 | Module 1: 'Accuracy, precision and measurement error' (VIM definitions of systematic and random error, bias, trueness, precision, repeatability, reproducibility, accuracy, resolution and gross errors) with Example 3 on two rangefinders at a known height, plus the calibration curve and GUM uncertainty budget · Module 2: the MEMS error model | Covered |
| Calibration | M1M2M3M4 | Module 1: the calibration curve · Module 2: six-position accelerometer calibration and hard iron · Module 3: airspeed calibration · Module 4: calibration with Zhang's method | Covered |
| Signal conditioning | M1 | Module 1: 'Signal conditioning: bridges and amplifiers' (Wheatstone bridge, strain gauges, load cells, instrumentation amplifiers and CMRR, RC anti-alias filter) with Example 4 on a thrust-stand load cell into a 12-bit ADC, plus 'The measurement chain' and 'ADC and sampling' · Module 4: the photodiode transimpedance amplifier | Covered |
| Motion sensors and IMUs | M2M3 | Module 2: MEMS and the error model, Allan deviation, magnetometers and hard iron · Module 3: airspeed from a pitot tube | Covered |
| Pressure sensors | M3 | Module 3: barometers and the standard atmosphere; airspeed from a pitot tube | Covered |
| Distance sensors and LiDAR | M3M5 | Module 3: ultrasonic and laser rangefinders · Module 5: LiDAR and FMCW radar | Covered |
| Position sensors and GNSS | M3M5 | Module 3: 'GNSS: position from satellite signals' (pseudoranges and at least four satellites, UERE error sources and DOP, GPS SPS performance, RTK, and pre-flight checks per CAAT-GM-UAS-001 and ArduPilot pre-arm checks) with Example 3 on clock errors and the GNSS error budget · Module 5: LiDAR uses GNSS position and the PPS time signal. The worksheets do not yet include a hands-on position measurement with a real receiver | Covered |
| Light sensors | M4 | Module 4: 'Light sensors: photodiodes and ambient light' (photosensitivity, quantum efficiency, dark current, transimpedance amplifier, the OPT3001 ambient light sensor and the DLS on multispectral cameras) with Example 3, plus the pinhole camera model | Covered |
| Temperature sensors | M1M3 | Module 1: 'Temperature sensors' (NTC thermistors, RTDs, thermocouples and IC sensors, self-heating) with Example 5 on a battery NTC thermistor in a voltage divider, plus Example 1 and the lab calibrating a battery temperature sensor · Module 3: temperature effects on airspeed and on the speed of sound for rangefinders | Covered |
| Camera systems | M4 | Module 4: the pinhole camera model, lens distortion and calibration with Zhang's method | Covered |
Weekly teaching plan
| Week | Topic | Pre-class | Lecture | Lab | Evidence |
|---|---|---|---|---|---|
| 1 M1 | The measurement chain and sensor characteristics | Read module 1 up to 'The measurement chain' | Stages of one measurement and reading characteristics from a datasheet; temperature sensors: NTC, RTD, thermocouple and IC (Example 5) | Worksheet 1 part A: connect an analog temperature sensor to the microcontroller board; record ADC resolution | Wiring diagram and datasheet characteristics table |
| 2 M1 | Calibration curves and uncertainty budgets | Read the calibration-curve section; run Example 1 | Two-point and multi-point calibration and the GUM propagation law; accuracy, trueness, precision and systematic, random and gross errors (Example 3) | Worksheet 1 part B: measure against a reference thermometer at five or more temperatures; fit the calibration | Calibration equation and uncertainty budget |
| 3 M1 | ADC and sampling | Read the ADC and sampling section; run Example 2; take the module 1 quiz | ADC resolution, quantisation noise, aliasing and anti-alias filters; signal conditioning with a bridge and an instrumentation amplifier (Example 4) | Worksheet 1 part C: check errors at unused temperatures; record a shaker at two sampling rates | Validation table, alias explanation and quiz result |
| 4 M2 | MEMS and the IMU error model | Read module 2 to 'MEMS and the error model' | Gyroscopes and accelerometers; bias, scale factor and noise | Worksheet 2 part A: six-position accelerometer calibration in Mission Planner or QGroundControl | Offsets and scales from the software |
| 5 M2 | Six-position calibration and Allan deviation | Read the six-position and Allan deviation sections; run Example 1 | Bias and scale factor from ±g; reading an Allan plot for ARW and bias instability | Worksheet 2 part B: compute the six positions yourself; start a one-hour static gyro recording | Computed versus software table and Allan deviation plot |
| 6 M2 | Magnetometers and hard iron | Read the magnetometer section; run Example 2; take the module 2 quiz | Hard and soft iron and their effect on heading | Worksheet 2 part C: rotate the compass board, find hard iron, test a steel screwdriver nearby | mx/my plots before and after correction, lab-notebook entry, quiz result |
| 7 M3 | Barometers and the standard atmosphere | Read module 3 on barometers; run Example 1 | Altitude from pressure, relative altitude and weather drift | Worksheet 3 part A: two-hour static recording against a weather station; fan test with and without foam | Drift plot and foam comparison |
| 8 M3 | Airspeed from a pitot tube | Read the airspeed section; run the first part of Example 2 | Dynamic pressure, IAS versus TAS and hot-day effects; GNSS pseudoranges, error sources, DOP and pre-flight checks (Example 3) | Worksheet 3 part B: calibrate airspeed per the ArduPilot or PX4 guide and convert to TAS | Resulting parameters and IAS/TAS table |
| 9 M3 | Rangefinders; midterm | Read the rangefinder section; review modules 1–3; take the module 3 quiz | Midterm examination (modules 1–3) | Worksheet 3 part C: ultrasonic range at room temperature and in sun; test laser cos θ compensation | Worksheet 3 report and midterm score |
| 10 M4 | The pinhole camera model | Read module 4 on the pinhole model | Projection centre, focal length and the K matrix | Worksheet 4 part A: print a checkerboard, measure squares with calipers and take at least 20 images | Image set covering the whole frame including edges |
| 11 M4 | Lens distortion | Read the lens distortion section; run Example 1 | Brown's model and its effect on ground distances | Worksheet 4 part B: calibrate following OpenCV or L11; record K, distortion and reprojection error | Calibration results with the reprojection-error definition |
| 12 M4 | Calibration with Zhang's method | Read the Zhang's method section; run Example 2; take the module 4 quiz | Per-image reprojection error and finding abnormal images; light sensors: photodiodes, ambient light sensors and the DLS (Example 3) | Worksheet 4 part C: drop abnormal images, recalibrate and undistort one aerial image | Before/after undistorted image and quiz result |
| 13 M5 | LiDAR and pulse density | Read module 5 on LiDAR; run Example 1 | Time of flight, point density, QL1 and time synchronisation | Worksheet 5 part A: find altitude and speed meeting QL1; count real density in CloudCompare (if data exist) | Altitude, speed and density table |
| 14 M5 | FMCW radar and choosing sensors for a mission | Read the radar and sensor-choice sections; run Examples 2–3; take the module 5 quiz | Range resolution, beat frequency, scoring matrices and weight sensitivity | Worksheet 5 part B: test a radar board; build the group scoring matrix with independent weights | Radar results, scoring matrix and quiz result |
| 15 M5 | Mini-project presentations or practical exam | Prepare the mission-sensor plan with the course's calibration results | Course wrap-up and assessment criteria | Present the mission-sensor plan, or a practical exam calibrating one sensor with an uncertainty budget | Mini-project report and presentation or practical exam, scored with the rubric |
Worksheets and instructor guide
One worksheet per module. Students open it on the web, print it or download the .docx. The instructor guide under each worksheet gives the class timing, expected results, discussion questions and notes for students with different backgrounds.
1Worksheet 1 Calibrating a temperature sensor
Lab · About 6 h of class time · CLO2, CLO1
Objective: Calibrate an analog temperature sensor, build an uncertainty budget, validate it and observe aliasing from sampling
Equipment
- Lab microcontroller board and analog temperature sensor
- Certified reference thermometer
- Water baths or a controlled temperature source
- Shaker or motor
- Computer with Python and example code at /downloads/uat-205/
Safety
- Avoid scalds from hot water; use heat-resistant gloves and stable containers
- Keep water away from boards and wires; power down before wiring changes
- Clamp the shaker or motor firmly and keep clear of moving parts
Steps
- Connect the sensor and record the ADC resolution
- Measure against the reference at five or more temperatures, waiting for each to settle
- Use Example 1 to find the calibration equation and uncertainty budget
- Measure at temperatures not used for calibration and check errors fall within the uncertainty
- Record the shaker or motor at two sampling rates
- Explain the apparent frequencies with Example 2
Deliverables
- Calibration data and equation
- Uncertainty budget
- Validation table at new temperatures
- Aliasing explanation
Checklist
- Table 1 has at least 5 calibration points and at least 2 validation points, every value has a unit, and settling before each reading is noted
- Both the two-point and least-squares equations are shown, with code that reruns
- The budget has at least 3 sources (multimeter, reference thermometer, nonlinearity), combined with the law of propagation, and gives the expanded value at k = 2
- Table 3 has predicted and observed frequencies at both sampling rates, with an explanation of any mismatch
Instructor guide
Class timing
- Objectives and safety briefing; prepare water baths30 min
- Wire the sensor and measure against the reference at five or more temperatures120 min
- Run Example 1 code for the equation and uncertainty budget60 min
- Validation measurements at new temperatures45 min
- Record the shaker at two sampling rates and explain aliasing75 min
- Wrap-up, questions and hand-in checklist30 min
Expected results
- Table 1 (numbers depend on the real sensor; with the lesson's Example 1 data, six points from 0 to 50 °C): two-point 9.980 mV/°C, offset 0.5020 V, worst error 0.44 °C (0.88% FS); least squares 10.034 mV/°C, offset 0.4998 V, worst error 0.38 °C (0.76% FS). An IC sensor of about 10 mV/°C should give a sensitivity close to this. Validation points should have errors no larger than the expanded uncertainty (about ±0.8 °C if the budget is close to the example).
- Table 2 (Example 1 values): multimeter 2 mV times c_V = 99.7 °C/V gives 0.20 °C, reference thermometer 0.10 °C (c = 1), nonlinearity from the residuals 0.31 °C; combined u_c = 0.38 °C, expanded U = 0.77 °C (k = 2). Adding a row for the quantization noise of a 12-bit 3.3 V ADC (0.233 mV, or 0.023 °C) still gives 0.38 °C. Accept rounding differences of ±0.01 °C.
- Table 3: a 180 Hz shaker sampled at 200 Hz appears at 20 Hz, and at 1,000 Hz it appears at its true 180 Hz (Example 2: 1,170 Hz at 1,000 Hz appears at 170 Hz; 450 Hz at 1,000 Hz stays at 450 Hz). Observed values should match the prediction within the frequency resolution of the analysis; a mismatch usually means the motor's real frequency is not the set value.
- A strong answer: least squares spreads the error over all points, so its worst error is lower than two-point (0.76% against 0.88% FS in the example). Two-point forces both ends to zero error and hides the error in the middle. If the residuals show a pattern (for example negative in the middle, positive at the ends) rather than random scatter, the sensor is nonlinear and a quadratic fit should be tried.
- In the example the nonlinearity (0.31 °C) is largest. Halving the multimeter uncertainty only lowers u_c from 0.38 to 0.34 °C, while removing the nonlinearity (for example with a quadratic fit) lowers it to about 0.22 °C. A strong answer uses the group's own numbers and notes that the largest source matters most because the terms add in quadrature.
- Most validation points should be within U (about 0.77 °C in the example). If not, common causes are not waiting for the temperature to settle, a point outside the calibrated range, or more nonlinearity than estimated. New points are needed because the equation was fitted to the old ones, so errors at the calibration points look better than they really are.
- A 12-bit 3.3 V ADC has an LSB of 0.806 mV, or 0.080 °C per count, while U of about 0.77 °C is almost 10 times larger. Resolution is therefore not accuracy: it only gives the smallest step that can be read, and accuracy comes from the uncertainty budget and the check against a reference.
- Using f_a = |f - round(f/f_s) f_s|: 180 Hz at 200 Hz gives 20 Hz because it is above half the sampling rate; at 1,000 Hz it gives 180 Hz because it is below 500 Hz. Once sampled, the 180 Hz and 20 Hz samples are identical at every point, so software cannot separate them and an anti-aliasing filter is needed before the ADC. A strong answer adds that a simple RC filter (1 kΩ and 1 µF, cutoff 159 Hz) still passes 30% of a 500 Hz vibration.
Discussion questions
- If the lab only has time for three temperatures, which points should it choose and which equation should it use, and why?
- Why can averaging many readings not remove a sensor's bias, while calibration can?
- On a real drone, what would the flight controller do wrong if propeller vibration were sampled too slowly?
Adapting to student background
- Upper secondary (M.6)
- Have them compute c_V = 1/a and combine the budget by hand once before running the code, and give them time to practise wiring and reading the reference thermometer with a hands-on peer.
- Vocational certificate
- Start by measuring and completing Table 1, then explain least squares with the plot (a line close to every point) and use a fill-in table for the budget one row at a time.
- Diploma
- Extension: fit a quadratic to the same data and compare residuals and combined uncertainty, or design an RC filter for the sampling rate used and measure its effect.
2Worksheet 2 IMU and compass calibration
Lab · About 6 h of class time · CLO2, CLO1
Objective: Calibrate the accelerometer in six positions, analyse the gyro with Allan deviation and correct compass hard iron
Equipment
- Flight controller or IMU board and compass board
- Mission Planner or QGroundControl
- Python, AllanTools and module 2 example code
- Steel screwdriver
Safety
- Remove propellers whenever a battery is connected to a drone in the lab
- Bench work only; no flying
Steps
- Run six-position calibration in the software and read offsets and scales
- Record raw six-position readings, compute with Example 1 and compare
- Leave the IMU still for at least an hour and record the gyro
- Compute Allan deviation to find ARW and bias instability
- Rotate the compass board, record mx and my, find hard iron with Example 2
- Place a steel screwdriver near the compass, observe the circle change and record it in the lab notebook
Deliverables
- Bias and scale-factor comparison table
- Allan deviation plot with ARW and bias instability
- mx/my plots before and after hard-iron correction
- Screwdriver test notes
Checklist
- Table 1 covers all three axes in m/s² and shows bias = (up + down)/2 and scale = (up - down)/2g
- The Allan deviation plot is log-log with the slope -1/2 line and states the bias-instability reading method
- The mx/my plots before and after hard-iron correction share the same axes and state the offset used
- The lab notebook records that propellers were off, the IMU stayed still throughout the recording, and the screwdriver's distance from the compass
Instructor guide
Class timing
- Objectives and safety; remove propellers; start the still gyro recording30 min
- Six-position calibration in software and own raw readings90 min
- Compute bias and scale with Example 1 and compare with the software45 min
- Rotate the compass, find hard iron and run the screwdriver test75 min
- Stop the gyro recording and compute Allan deviation90 min
- Wrap-up, questions and hand-in checklist30 min
Expected results
- Table 1 (numbers depend on the real IMU; with the lesson's Example 1 values): x bias +0.120 m/s², scale 1.0003; y bias +0.040 m/s², scale 1.0003; z bias -0.200 m/s², scale 1.0014. Your own values should be close in size to the software's (check the sign convention in the software's parameter description before comparing). Scale factors should be near 1; one far from 1 usually means the board moved during the reading.
- Table 2 (depends on the real IMU): for the TDK ICM-42688-P quoted in the lesson, a gyro noise of 2.8 mdps/√Hz means an Allan deviation on the slope -1/2 line at τ = 1 s of about 0.0028 °/s (equal to 0.168 °/√h). Values measured on a real board are often higher than the datasheet. Bias instability is read at the minimum of the curve; with the IEEE method divide by 0.664 (the value becomes 1.51 times larger). The record must be long enough to show the minimum before the curve rises.
- Table 3 (with Example 2 values: 35 µT horizontal field, offset (12, -8) µT): mx from -23.0 to 47.0 µT, my from -43.0 to 27.0 µT, estimated offset (12.0, -8.0) µT; worst heading error 24.3° before correction and 0.0° after. With the screwdriver nearby the circle should shift or distort and the offset should change; the real values depend on the screwdriver's distance.
- From Example 1, biases of +0.12 m/s² on x and +0.04 m/s² on y show about 0.72° of tilt while the drone is level, and 0.00° after correction. The controller would keep correcting a tilt that does not exist until the drone drifts to one side. A strong answer computes the angle from the group's own values with atan2.
- Small differences are normal. Causes worth naming: the board moved during the reading (a common mistake), the positions were not truly vertical, raw readings were averaged too briefly so noise mattered, or the software uses a different definition or sign from the lesson's formula.
- AN5087 reads the minimum directly, while the IEEE gyro standard divides the minimum by 0.664, giving a value about 1.51 times larger. Without the method stated, a reader cannot compare with the datasheet or another gyro model, and the EKF noise settings may be set wrongly.
- A strong answer: a shifted centre means an added constant field (hard iron, for example a magnetised screwdriver); stretching into an ellipse means a permeable material distorts the field (soft iron). The steel of a screwdriver can do both. The compass must therefore be mounted away from steel parts and high-current wiring, and recalibrated whenever equipment near it is moved.
Discussion questions
- Why does calibrating a compass near a car or steel structure make the result worse rather than better?
- If you had to choose between two IMU models for the lab's VTOL, how would Allan deviation results help you decide?
- Why is relying on a single datasheet value without measuring it yourself risky?
Adapting to student background
- Upper secondary (M.6)
- Have them derive bias = (up + down)/2 and scale = (up - down)/2g from the model ã = s a + b before starting, paired with a peer fluent in Mission Planner or QGroundControl.
- Vocational certificate
- Do the six positions by hand first and fill in a template table; explain Allan deviation with a ready-made plot and point out only the two readings needed (the slope -1/2 line at τ = 1 s and the minimum).
- Diploma
- Extension: correct soft iron by fitting the ellipse back to a circle, or repeat the gyro recording after warming the board to see the effect of temperature on bias.
3Worksheet 3 Barometer, airspeed and rangefinder
Lab · About 6 h of class time · CLO2, CLO1
Objective: Measure barometer drift, calibrate airspeed and check temperature and tilt effects on rangefinders
Equipment
- Board with barometer and foam cover
- Airspeed sensor with pitot tube
- Ultrasonic and laser rangefinders
- Fan, tape measure and protractor
- Pressure data from a nearby weather station
Safety
- Never aim the laser rangefinder at eyes; check its laser class first
- Boards left in the sun get hot
- Bench and lab-area work only; no flying
Steps
- Leave the board still for two hours; record barometric altitude against weather-station pressure
- Blow a fan at the bare and foam-covered board; compare altitude change
- Calibrate airspeed per the ArduPilot or PX4 guide
- Convert readings to TAS with Example 2
- Measure distance to a wall with ultrasonic at room temperature and in sun, against a tape
- Tilt the laser board at several angles and check cos θ compensation
Deliverables
- Drift plot against real pressure
- Foam comparison
- IAS/TAS table
- Range versus temperature and angle table
Checklist
- Table 1 covers the full two hours, names the weather station and the time of its pressure data, and includes the altitude against pressure plot
- Table 2 computes IAS with ρ0 = 1.225 kg/m³ and TAS with the real density from measured pressure and temperature, every value with a unit
- Table 3 gives percentage errors before and after compensation, for both the temperature case and at least three tilt angles
- Records show the laser was never aimed at eyes, its laser class was checked, and the temperature was logged for every measurement
Instructor guide
Class timing
- Objectives and laser safety; start the still barometer recording30 min
- Fan test on the bare and foam-covered board45 min
- Airspeed calibration and conversion to TAS90 min
- Ultrasonic rangefinder indoors and in sun; tilt the laser at several angles105 min
- Stop the barometer recording, fetch station data and plot60 min
- Wrap-up, questions and hand-in checklist30 min
Expected results
- Table 1 (depends on the day's weather): near 1,008 hPa the sensitivity is 8.36 m per hPa (Example 1). If station pressure falls by 1.5 hPa, barometric altitude should rise by about 12.5 m although the board is still. Measured altitude should follow the pressure change in the opposite direction; the BMP390's short-term relative accuracy is about ±0.25 m (3 Pa). With the fan, the bare board should jump clearly more than the foam-covered one.
- Table 2 (lesson Example 2): 245 Pa gives IAS 20.00 m/s; at 1,008 hPa and 35 °C the density is 1.1396 kg/m³ and TAS 20.74 m/s (3.7% above IAS). Indoors at 25 °C and 1,008 hPa the density is 1.1778 kg/m³ and TAS is about 2.0% above IAS. A fan's airflow is much weaker; for example IAS 5 m/s needs only 15.3 Pa of differential pressure (TAS 5.10 m/s). Accept rounding differences of ±0.01.
- Table 3: for a sound round trip of 5.83 ms, Example 2 gives 1.001 m when 20 °C is assumed but 1.026 m at a real 35 °C (2.5% error). If the wall is really 2.000 m away and the sensor assumes 25 °C while the air in the sun is 40 °C, it reads about 1.952 m (2.5% short). A laser at a true height of 1.000 m reads 1.015, 1.064 and 1.155 m at 10°, 20° and 30° of tilt; multiplied by cos θ these should return close to 1.000 m.
- Altitude should change by about 8.4 m per 1 hPa of pressure change, in the opposite direction. On a one-hour mission with a 1.5 hPa fall, altitude drifts about 12.5 m, so the barometer must be fused with GNSS and the pressure at the landing site checked before landing. A strong answer uses the group's own numbers and points out where they disagree with the station (for example board heating or distance from the station).
- Wind blowing into the sensor port changes the pressure the sensor feels, so the altitude jumps; foam reduces this. Sun heats the board and makes the value drift, which the ±3 Pa relative accuracy figure does not include. A strong answer gives numbers for how much the foam reduced the change.
- Hot air is less dense, so TAS is higher than IAS: about 2.0% at 25 °C and about 3.7% at 35 °C (20.00 to 20.74 m/s), which affects flight-time and energy calculations. The pitot tube must be covered at power-up because the system measures the differential-pressure zero then; wind in the tube would make the zero wrong.
- The speed of sound varies with √T: from 25 °C to 40 °C it rises about 2.5% (346.1 to 354.7 m/s), so an uncompensated sensor is off by about 2.5%. A strong answer compares this with the measured value. cos θ compensation works over flat ground and fails on slopes, over crops or obstacles, or when the laser spot lands on another object.
Discussion questions
- If the VTOL surveys a plot for an hour on a day when pressure changes quickly, which altitude sources should it use, and what should be checked before landing?
- Why does the number of GNSS satellites alone not show that the position is accurate, and how does that relate to using the barometer?
- Between an ultrasonic and a laser rangefinder, which suits landing over a crop plot in the sun, and why?
Adapting to student background
- Upper secondary (M.6)
- Have them derive the m per hPa sensitivity from the standard-atmosphere formula and TAS = IAS √(ρ0/ρ) from q = ½ρv² before starting, then practise fitting the pitot tube and calibrating in the software with an assistant nearby.
- Vocational certificate
- Focus on complete measurements and records first; use the shortcut of 8.4 m per hPa instead of the full formula, and a fill-in table with the IAS, TAS and cos θ formulas written in each column.
- Diploma
- Extension: write temperature-compensation code for the ultrasonic rangefinder using the board's temperature sensor, then repeat the sun measurement to show the error falls.
4Worksheet 4 Camera calibration with OpenCV
Lab · About 6 h of class time · CLO2, CLO1
Objective: Find camera intrinsics and distortion, check quality with reprojection error and undistort a real image
Equipment
- Checkerboard on a flat rigid board
- Calipers
- Drone camera or a camera with locked focus
- Python and OpenCV
- One aerial image from the same camera
Safety
- Desk and indoor photography only; no flying
- Remove propellers if the camera is on a powered drone
Steps
- Print a checkerboard, measure squares with calipers, mount it flat
- Lock focus and take at least 20 images in many poses, covering the frame and edges
- Calibrate following the OpenCV tutorial or lab L11
- Record K, distortion coefficients and reprojection error with its definition
- Use Example 2 to find abnormal images, inspect the cause and recalibrate
- Undistort one aerial image and compare edge straight lines before and after
Deliverables
- K and distortion coefficients
- Per-image reprojection error before and after pruning
- Before/after undistorted images
Checklist
- The checkerboard square size measured with calipers is stated with its unit, along with the number of inner corners
- Table 1 has fx, fy, cx, cy and every distortion coefficient, plus the reprojection error with the definition used
- Table 2 lists every image, and each dropped image has a cause seen on inspection, not just a high value
- Before and after images are attached, with at least one edge straight line marked
Instructor guide
Class timing
- Objectives; prepare the checkerboard and measure the squares45 min
- Lock focus and take at least 20 images covering the frame to the edges60 min
- Calibrate in OpenCV and record K, distortion and reprojection error90 min
- Find abnormal images with Example 2, inspect and recalibrate75 min
- Undistort the aerial image and compare edge lines60 min
- Wrap-up, questions and hand-in checklist30 min
Expected results
- Table 1 (depends on the real camera): fx should be close to f/p from the specification, for example about 2,666.7 px for the 8.8 mm focal length and 3.3 µm pixels of Example 1; fy close to fx; cx and cy near the image centre (about 2,000 px for a 4,000-pixel-wide image). Wide-angle drone lenses usually give a negative k1 (barrel distortion). If fx is far from f/p, check that the resolution or zoom matches the specification.
- Table 2 (lesson Example 2): overall 1.031 px per point (0.729 px per component); normal images about 0.245 to 0.250 px; the twice-the-median limit is 0.490 px; img03 at 2.252 px is flagged, and without it the overall figure is 0.246 px per point. The group's real data should have few flagged images, each with an explainable cause such as blur or misdetected corners.
- Note 1: before correction, straight lines near the image edges bow toward the centre (barrel distortion when k1 is negative); after correction they should be straight, while lines near the centre barely change. In Example 1 (k1 = -0.12, k2 = 0.03 at 100 m), points move 0.3 px at X = 10 m but 96.3 px (3.61 m on the ground) at X = 70 m.
- RMS per point divides by n and RMS per component by 2n, so they differ by a factor of √2: for example 1.031 px per point equals 0.729 px per component, and 0.5 px per point equals 0.354 px per component. Without the definition, a reported value may look √2 times better than it is when compared with other work.
- Common causes are a blurred image, misdetected corners or a board that is not flat. The image must be inspected before it is dropped, not removed just for a high value. In the example the overall figure falls from 1.031 to 0.246 px per point, but a low value still does not prove correctness, because the parameters were fitted to the same images; an independent image set not used for calibration is needed.
- Distortion grows with distance from the centre: in Example 1 a point at the centre barely moves while one near the edge moves almost 100 px. Without checkerboard corners near the edges, k1 and k2 are poorly estimated there. A strong answer describes the group's own edge lines as curved before and straight after correction.
- A calibration belongs to that camera, lens and resolution only. Changing resolution or zoom changes fx, fy, cx and cy, and the distortion may change with zoom, so the camera must be recalibrated at the settings used in flight.
Discussion questions
- If a map stitched from aerial images warps into a bowl or dome, which step should you suspect first?
- Why can a calibration of one camera not be used straight away on another camera of the same model?
- Can an ambient light sensor that reads in lux replace the downwelling light sensor of a multispectral camera? Why?
Adapting to student background
- Upper secondary (M.6)
- Have them compute fx = f/p and the pixel position u = fx X/Z + cx by hand for one point before running the code, then give time to practise setting up the camera, locking focus and posing the board to reach the edges.
- Vocational certificate
- Start with the real photography, showing examples of good and bad poses; use a prepared OpenCV script where they enter only the square size and corner count, and explain reprojection error with a picture of detected against reprojected corners.
- Diploma
- Extension: take an independent set of 10 more images to check the calibration, and compare the reprojection error of the calibration set with the check set.
5Worksheet 5 Planning mission sensors
Lab · About 6 h of class time · CLO3, CLO1
Objective: Compute LiDAR flight parameters, test a ranging radar and choose mission sensors with a scoring matrix
Equipment
- Specification of a LiDAR the lab has or plans to buy
- Sample LiDAR data and CloudCompare (if available)
- Ranging radar development board
- Python and module 5 example code
Safety
- Check the laser safety class in the manufacturer's documents before testing near people
- Never look into the LiDAR aperture
- Indoor work only; no flying
Steps
- Use Example 1 with the LiDAR specification to find altitude and speed meeting QL1
- If sample data exist, count real density in CloudCompare and compare
- Test the radar board indoors and record separable ranges against Example 2
- Build a scoring matrix for the group's mission
- Have each member set weights independently; compare results and sensitivity
- State the chosen sensors with reasons
Deliverables
- Altitude, speed and density table
- Radar test results
- Scoring matrix with weight sensitivity
- Sensor selection conclusion
Checklist
- Table 1 has at least 4 altitude and speed pairs, states the PRR and field of view of the LiDAR used, and at least one pair meets QL1
- The mission and its question are stated before the scoring matrix, and each member's weights sum to 1
- Weight sensitivity is reported, saying whether the ranking changed, and the sensor choice gives numeric reasons
- The laser safety class from the manufacturer's documents and the radar test conditions (range, target material) are recorded
Instructor guide
Class timing
- Objectives; check the laser class; frame the group's mission question45 min
- Compute altitude and speed meeting QL1 from the LiDAR specification75 min
- Count real density in CloudCompare (if data exist)45 min
- Test the radar board indoors75 min
- Build the scoring matrix, set weights independently and compare sensitivity90 min
- Sensor choice summary, questions and hand-in checklist30 min
Expected results
- Table 1 (depends on the real specification; with Example 1 values and a 70° field of view): 240,000 pulses/s at 60 m and 8 m/s gives an 84.0 m swath, 357.0 pulses/m², 0.05 m spacing; at 120 m and 15 m/s a 168.0 m swath and 95.2 pulses/m²; 20,000 pulses/s at 100 m and 12 m/s a 140.0 m swath, 11.9 pulses/m², 0.29 m spacing; all meet QL1. For the 20,000 pulses/s LiDAR at 100 m, the highest speed still meeting QL1 (8 pulses/m²) is 17.9 m/s. If real data exist in CloudCompare, real density is usually higher than computed where passes overlap and lower at the swath edges or on non-reflective surfaces.
- Table 2 (depends on the real board): range resolution ΔR = c/2B, for example 3.75 cm at 4 GHz bandwidth, 14.99 cm at 1 GHz and 59.96 cm at 0.25 GHz. Two targets closer than the board's ΔR should merge into one. Beat frequency is proportional to range: with a 30 MHz/µs chirp slope a 5 m target gives 1.00 MHz. If the lab's board uses another bandwidth, recompute ΔR from its specification.
- Table 3 (depends on the group's mission; with Example 3, sugarcane canopy height over 50 rai): accuracy-first weights give LiDAR 3.75, RGB photogrammetry 3.10, radar 2.80; budget-first weights give RGB 3.50, radar 3.20, LiDAR 2.95. Every weight set must sum to 1. Accept rounding differences of ±0.01.
- Density = PRR/(v W), and W is proportional to altitude, so doubling both altitude and speed cuts density to a quarter (357.0 to about 89.3 pulses/m² at 120 m and 16 m/s; the example uses 15 m/s and gets 95.2). A strong answer chooses a pair that meets QL1 with a margin for swath edges and low-reflectance surfaces, and states the trade-off against area per flight.
- The separable gap should be close to the board's ΔR = c/2B (for example 3.75 cm at 4 GHz). Resolution says how far apart two targets must be to be separated, not how wrong the range to one target is; accuracy must be judged against a reference range such as a tape measure.
- In Example 3 the ranking swaps when the weights change (LiDAR wins on accuracy, RGB on budget), showing the result depends on the weights. If the group's ranking does not change, the conclusion is robust; if it does, go back to the data users' needs. Weights must be agreed before seeing scores so nobody tunes them to get the sensor they want.
- Shift = speed × timing error, for example 8 cm at 8 m/s, 10 cm at 10 m/s and 12 cm at 12 m/s. Real systems synchronise time with the GNSS PPS signal or a time-synchronisation protocol.
Discussion questions
- Why must sensor choice start from the mission question? Give an example mission where an expensive LiDAR is not needed.
- What advantages does a ranging radar have over LiDAR for an agricultural drone flying in dust or fog?
- If the group's scoring result differs from what the instructor expected, what should be checked before concluding it is wrong?
Adapting to student background
- Upper secondary (M.6)
- Have them derive W = 2H tan(θ/2) and ΔR = c/2B before using the code, and give them hands-on responsibility for wiring and testing the radar board with a hands-on peer.
- Vocational certificate
- Start with the radar test and real range measurements; use a spreadsheet with the density formula built in so they change only altitude and speed, and explain the scoring matrix with an everyday example of choosing what to buy.
- Diploma
- Extension: place two metal targets and move them closer until the radar can no longer separate them, compare that gap with the board's ΔR, and propose an overlapping flight plan that raises density.
Scoring rubric
For worksheets and the mini-project. Each criterion scores level (1–4) ÷ 4 × weight.
| Criterion | Weight | Excellent (4) | Good (3) | Fair (2) | Needs work (1) |
|---|---|---|---|---|---|
| Accuracy of calibration and calculations | 30% | Calibration and numbers all correct, with reproducible method and code | Nearly all correct, method shown | Some errors or missing steps | Many errors or no method |
| Uncertainty evaluation and validation | 25% | Complete uncertainty budget, validated with unused data, errors explained | Nearly complete budget with validation | Key sources missing or no validation | No uncertainty evaluation |
| Experimental practice and lab safety | 20% | Sound setup, complete conditions in the lab notebook, all safety rules followed | Nearly all correct, minor gaps in records | Incomplete records or setup errors | Safety ignored or no records |
| Sensor selection and communication | 25% | Selection matches mission needs with numeric reasoning; clear report, correct citations | Good reasoning, minor report flaws | Unclear reasoning or missing parts | Sensors not linked to the mission |
Assessment map: CLOs and how they are assessed Draft
The CLOs are a web-team draft; the course owner sets the final ones (curriculum book, part 4). This table is built from the worksheet and module-quiz data, so it follows any change to the CLOs.