Skip to content

Commit 800d1c9

Browse files
committed
Unified maintenance across modes
1 parent 5daec80 commit 800d1c9

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

modes/delivery-robots.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,14 @@ Valid delivery vehicle event types are
186186
- `located`
187187
- `maintenance`
188188
- `maintenance_pick_up`
189+
- `maintenance_end`
189190
- `missing`
190191
- `off_hours`
191192
- `on_hours`
192193
- `driver_cancellation`
193194
- `order_drop_off`
194195
- `order_pick_up`
195196
- `decommission`
196-
- `maintenance_end`
197-
- `maintenance_start`
198197
- `customer_cancellation`
199198
- `provider_cancellation`
200199
- `recommission`
@@ -248,9 +247,10 @@ This is the list of `vehicle_state` and `event_type` pairings that constitute th
248247
| `non_operational` | `available` | N/A | `service_start` | The vehicle has gone into service (is available for-hire) |
249248
| `non_operational` | `elsewhere` | N/A | `trip_leave_jurisdiction` | The vehicle has left jurisdictional boundaries while not operating commercially |
250249
| `non_operational` | `non_contactable` | N/A | `comms_lost` | The vehicle has gone out of comms while not operating commercially |
250+
| `non_operational` | `non_operational` | N/A | `maintenance` | The vehicle has maintenance performed on site |
251+
| `non_operational` | `non_operational` | N/A | `maintenance_end` | Maintenance is complete |
252+
| `non_operational` | `removed` | N/A | `maintenance_pick_up` | The vehicle has entered the depot for maintenance |
251253
| `non_operational` | `removed` | N/A | `decommissioned` | The vehicle has been removed from the Provider's fleet |
252-
| `non_operational` | `removed` | N/A | `maintenance_start` | The vehicle has entered the depot for maintenance |
253-
| `on_trip` | `available` | N/A | `order_drop_off` | The vehicle is at the customer's place and is waiting for them |
254254
| `on_trip` | `elsewhere` | N/A | `trip_leave_jurisdiction` | The vehicle has left jurisdictional boundaries while on a trip |
255255
| `on_trip` | `non_contactable` | N/A | `comms_lost` | The vehicle has gone out of comms while on a trip to pick up the order |
256256
| `on_trip` | `stopped` | N/A | `order_drop_off` | The vehicle is at the customer's place and is waiting for them |
@@ -277,7 +277,7 @@ This is the list of `vehicle_state` and `event_type` pairings that constitute th
277277

278278
### State Machine Diagram
279279

280-
This *State Machine Diagram* shows how `vehicle_state` and `event_type` relate to each other and how vehicles can transition between states. See [Google Slides](https://docs.google.com/presentation/d/1fHdq1efbN5GSFDLF4en-oA_BYPXQKbbIbHff6iROJKA/edit#slide=id.g2072486e468_1_402) for the source file.
280+
This *State Machine Diagram* shows how `vehicle_state` and `event_type` relate to each other and how vehicles can transition between states. See [Google Slides](https://docs.google.com/presentation/d/1fHdq1efbN5GSFDLF4en-oA_BYPXQKbbIbHff6iROJKA/edit#slide=id.g207ec9d0152_0_0) for the source file.
281281

282282
![Delivery Robots State Machine Diagram](delivery-robots-state-machine-diagram.svg)
283283

modes/passenger-services.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,9 @@ Valid passenger services vehicle event types are
188188
- `comms_restored`
189189
- `driver_cancellation`
190190
- `decommission`
191+
- `maintenance`
192+
- `maintenance_pick_up`
191193
- `maintenance_end`
192-
- `maintenance_start`
193194
- `passenger_cancellation`
194195
- `provider_cancellation`
195196
- `recommission`
@@ -237,8 +238,10 @@ This is the list of `vehicle_state` and `event_type` pairings that constitute th
237238
| `non_operational` | `available` | N/A | `service_start` | The vehicle has went into service (is available for-hire) |
238239
| `non_operational` | `elsewhere` | N/A | `trip_leave_jurisdiction` | The vehicle has left jurisdictional boundaries while not operating commercially |
239240
| `non_operational` | `non_contactable` | N/A | `comms_lost` | The vehicle has went out of comms while not operating commercially |
241+
| `non_operational` | `non_operational` | N/A | `maintenance` | The vehicle has maintenance performed on site |
242+
| `non_operational` | `non_operational` | N/A | `maintenance_end` | Maintenance is complete |
243+
| `non_operational` | `removed` | N/A | `maintenance_pick_up` | The vehicle has entered the depot for maintenance |
240244
| `non_operational` | `removed` | N/A | `decommissioned` | The vehicle has been removed from the Provider's fleet |
241-
| `non_operational` | `removed` | N/A | `maintenance_start` | The vehicle has entered the depot for maintenance |
242245
| `on_trip` | `elsewhere` | N/A | `trip_leave_jurisdiction` | The vehicle has left jurisdictional boundaries while on a trip |
243246
| `on_trip` | `non_contactable` | N/A | `comms_lost` | The vehicle has gone out of comms while on a trip |
244247
| `on_trip` | `stopped` | `stopped` | `trip_stop` | The vehicle has stopped while on a trip |

0 commit comments

Comments
 (0)