UAT 457 UAS for Transportation and Autonomous Delivery

Worksheet 10 End-to-end mock delivery system and dashboard

Analysis activity 6 hAssesses CLO6

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

  1. Write an OpenAPI document for POST /api/v1/jobs and GET /api/v1/jobs/{id} with units, status codes and examples
  2. Build a mock server that uses the intake gate from Worksheet 6
  3. Set up Mosquitto, design topics, set per-device permissions, use retained and will messages, and test with SITL
  4. Write a webhook consumer following Example 1 and test it with repeated and reordered messages
  5. 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

Table 1 Webhook consumer tests
CaseMessages sent (event_id and seq)Expected final stateActual final statePass?
Table 2 Broker topics and permissions
TopicPublisherSubscriberQoSRetained or willMessage expiry
Table 3 Indicators of the mock system
Indicator (SLI)ValueTarget (SLO)Met?

Questions

  1. From Table 1, if the consumer did not check event_id and seq, what would a late message do to the factory's ERP?

  2. Why must a take-off command over MQTT carry a message expiry, and what harm do the per-device permissions in Table 2 prevent?

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

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

CLO6 Integrate delivery systems with information systems and monitor system performance with indicators. (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