Development and integration
UAT 491 Unmanned Aircraft Systems and Automation Technology Capstone Project
Lesson
By the end of this module you will be able to
- Plan development in sprints, track it with a burndown chart and forecast from the team's velocity
- Control code, parameters and models with Git using the GitHub flow
- Integrate the system up a ladder from SITL to HITL, bench testing, tethered flight and free flight
- Check the electrical budget of the integration, including voltage drop in the main leads and companion-computer power
Why this matters
Weeks 4 to 13 consume most of the team’s hours. Hardware, software and an AI model all have to work together on one drone. The risk is that everyone finishes their own part and only puts the pieces together in the last week. This lesson continues the rain-gutter inspection drone from module 2 and shows ways of working that give the team a usable system from early in the semester. All figures are hypothetical.
Working in sprints
The Scrum Guide by Schwaber and Sutherland divides work into sprints, fixed-length periods of one month or less, each ending with a usable increment. This team chose two-week sprints from week 4 to week 13, five sprints in all.
- The backlog is the list of work ordered by priority, taken from the reduced scope agreed in module 1.
- A story point is a relative estimate of difficulty, not hours; harder items get more points.
- Velocity is the number of points the team actually completes per sprint, a far better forecaster than guessing.
Example 1 Forecasting after the first two sprints
The backlog totals 150 points. The first two sprints delivered 22 and 26 points, and three sprints remain.
import math
BACKLOG = 150 # story points of all the work
done = [22, 26] # first two sprints
SPRINTS_LEFT = 3
remaining = BACKLOG - sum(done)
v_lo, v_hi, v_avg = min(done), max(done), sum(done) / len(done)
print(f"remaining {remaining} points, velocity {v_lo}-{v_hi} (avg {v_avg:.0f})")
print(f"can finish {v_lo * SPRINTS_LEFT}-{v_hi * SPRINTS_LEFT} points in {SPRINTS_LEFT} sprints")
print(f"sprints needed at average velocity: {math.ceil(remaining / v_avg)}")
print(f"cut at least {remaining - v_lo * SPRINTS_LEFT} points to be safe at the slowest velocity")
remaining 102 points, velocity 22-26 (avg 24)
can finish 66-78 points in 3 sprints
sprints needed at average velocity: 5
cut at least 36 points to be safe at the slowest velocity
At the average velocity the team would need 5 sprints, but only 3 remain. So it cuts at least 36 points from the bottom of the backlog now, for example postponing the interactive map view, and tells the advisor. Planning on the slowest velocity guards against optimism.
Controlling code, parameters and models with Git
A drone project has three things that change often: the code, the flight-controller parameters and the AI model files. If you cannot tell which version flew in which test, the test results cannot be compared. The GitHub flow is easy for a small team.
- The
mainbranch must always run. - Every new piece of work happens on its own branch.
- Open a pull request and have at least one teammate read it before merging.
- Tag every version that goes to a flight test and record the tag in the test log.
Write commit messages in the Conventional Commits style, such as feat: for a new capability and fix: for a bug fix, so the history is easy to read later.
git switch -c feat/gutter-mission
git add mission/gutter_route.py params/copter_gutter.param
git commit -m "feat: add gutter-following route with 4.8 s photo trigger"
git push -u origin feat/gutter-mission
git tag flight-test-2026-10-14
Parameter files exported from the ground station can live in the repository. Large model files should be stored wherever the team agrees, with their file names and hashes recorded in the repository (see module 5). Never store passwords or account keys in the repository.
The integration ladder
Bring the parts together one step at a time, from low risk to high, and pass the criteria of one step before climbing to the next.
- SITL (software in the loop) simulates both the aircraft and the autopilot on a computer. The ArduPilot documentation explains that it can test missions and companion-computer code with no hardware. The team tests the gutter route and capture commands here first.
- HITL (hardware in the loop) connects the real flight controller to a simulation; the PX4 documentation describes the setup. It checks that the firmware and settings on the real board behave as in simulation.
- Bench test with propellers off: real power, checking motor direction, failsafes and communication between the companion computer and the flight controller.
- Tethered flight in a safe area, checking stability and vibration before free flight.
- Free flight at an approved test site, before flying close to a real roof.
Electrical budget of the integration
Adding the companion computer and camera means checking that the power system still copes. Two things are often overlooked: voltage drop in the main leads and the power the companion computer draws from the battery. Wire resistance is , where is the resistivity of copper, the total length out and back, and the cross-sectional area.
Example 2 Main leads and the 5 V converter
The main leads are 12 AWG, 15 cm each. The hover current comes from the 185 W in module 2. At full throttle, four motors draw 20 A each plus 1.5 A for everything else. The companion computer needs 5 V at 3 A through a converter with 90% efficiency.
RHO_CU = 1.72e-8 # ohm·m, copper at 20 °C
AREA_12AWG = 3.31e-6 # m²
LENGTH = 2 * 0.15 # m, positive and negative leads, 15 cm each
V_BATT = 14.8
r = RHO_CU * LENGTH / AREA_12AWG
print(f"lead resistance {r * 1000:.2f} mOhm")
for label, amps in (("hover", 185 / V_BATT), ("full throttle", 4 * 20 + 1.5)):
print(f"{label:<13} {amps:5.1f} A: drop {amps * r:.3f} V, heat {amps ** 2 * r:.2f} W")
p_out, eff = 5 * 3, 0.90 # companion computer 5 V 3 A, converter 90%
p_in = p_out / eff
print(f"companion via 5 V converter: {p_in:.1f} W from battery = {p_in / V_BATT:.2f} A")
lead resistance 1.56 mOhm
hover 12.5 A: drop 0.019 V, heat 0.24 W
full throttle 81.5 A: drop 0.127 V, heat 10.35 W
companion via 5 V converter: 16.7 W from battery = 1.13 A
The voltage drop in the main leads is tiny even at full throttle, but the companion computer draws about 1.1 A from the battery all the time, which is already inside the 15 W in module 2. If the team switches to a more powerful board, the endurance budget must be updated. Power the companion computer from its own converter rather than from the flight controller’s supply pins, and connect a common ground between the two boards so the UART link works correctly.
Module lab
Lab: integrate step by step
- Set up the backlog, estimate points and record velocity every sprint; forecast as in Example 1 and cut scope when needed.
- Create the team repository, use branches and pull requests every time, and tag before each test flight.
- Test the gutter mission in SITL and record the pass criteria of every rung of the ladder.
- Check the electrical budget as in Example 2 with the real parts, and measure the real current with the power module.
- Climb the ladder to free flight at the test site before week 11.
Common mistakes
Watch out
- Integrating everything at once at the end, so the cause of a problem cannot be found
- Forecasting from the team’s best sprint instead of the slowest or the average
- Not knowing which code and parameters flew in which test
- Skipping rungs, going straight from SITL to flying near a real building
- Powering the companion computer from the flight controller, or forgetting the common ground
Summary
- Two-week sprints, a backlog and velocity give a numerical forecast, .
- GitHub flow: main always runs, new work lives on branches, merges go through pull requests, and every flight version is tagged.
- Integrate up the ladder SITL → HITL → bench → tethered → free flight.
- Check the electrical budget with and the companion computer’s power, and update the endurance budget when parts change.
Check your understanding
- The remaining backlog is 96 points, the first three sprints delivered 20, 24 and 28 points, and 4 sprints remain. Planning on the slowest velocity, how many points must be cut?
- A 10 AWG lead with a cross-section of 5.26 mm², 0.3 m in total, carries 80 A. What is the voltage drop?
- A 5 V 4 A companion computer through a 90%-efficient converter draws how much current from a 14.8 V battery?
- Why run HITL before real flight even after passing SITL?
- What should be in place before work is merged into main?
Answers
- points, so cut points
- mΩ, so V
- W, divided by 14.8 V gives about 1.50 A
- SITL does not use the firmware and settings on the real board; HITL catches real-board problems without the risk of flight
- A pull request read by a teammate, code that runs, tests that pass and commit messages that say what changed
Key formulas
| Sprints needed | |
| Wire resistance |
Key references
Further reading
Study the assigned knowledge units in advance, review media and take the module quiz
Designing and integrating drone systems
การบริหารโครงการเทคโนโลยี
Git และการทำงานร่วมกันแบบมีเวอร์ชัน
In class / field
Team project work, advisor meetings and progress presentations
Learning evidence: Project milestone deliverables