UAT 457 UAS for Transportation and Autonomous Delivery
Worksheet 10 End-to-end mock delivery system and dashboard
Objective
Connect the mock delivery system to external systems with REST, webhooks and MQTT, and measure performance with SLIs, SLOs and a p chart
Equipment and materials
- Computer with Python, a Mosquitto broker and an OpenAPI editor
- SITL drone or device simulator
- Code from Worksheets 6 to 9
Safety
- Desk work, no flying
- Set passwords and per-device permissions on the broker; do not expose it to the public internet
Steps
- Write an OpenAPI document for POST /api/v1/jobs and GET /api/v1/jobs/{id} with units, status codes and examples
- Build a mock server that uses the intake gate from Worksheet 6
- Set up Mosquitto, design topics, set per-device permissions, use retained and will messages, and test with SITL
- Write a webhook consumer following Example 1 and test it with repeated and reordered messages
- Run the mock system for at least an hour, compute SLIs with Example 3 and a p chart with Example 4, and write a one-page report
Record of results
| Case | Messages sent (event_id and seq) | Expected final state | Actual final state | Pass? |
|---|---|---|---|---|
| Topic | Publisher | Subscriber | QoS | Retained or will | Message expiry |
|---|---|---|---|---|---|
| Indicator (SLI) | Value | Target (SLO) | Met? |
|---|---|---|---|
Questions
From Table 1, if the consumer did not check event_id and seq, what would a late message do to the factory's ERP?
Why must a take-off command over MQTT carry a message expiry, and what harm do the per-device permissions in Table 2 prevent?
From Table 3, how do the mean and the 95th percentile of order-to-delivery time tell different stories, and does the group's system meet its SLO?
On the group's p chart, is any day outside the control limits? What should be done on a day that is slightly worse but still inside them?
Check before you hand in
What to hand in
- OpenAPI document and mock server
- Broker configuration and topic list
- Webhook consumer test results
- One-page KPI report