Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea
.vscode
.venv
_*/
cmake-build-debug/
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ INCLUDE(CheckPIESupported)
CHECK_PIE_SUPPORTED()
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)

SET(MISSION_MODULE_VERSION 1.2.12)
SET(MISSION_MODULE_VERSION 1.2.13)

OPTION(BRINGAUTO_INSTALL "Configure install" OFF)
OPTION(BRINGAUTO_PACKAGE "Configure package creation" OFF)
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ External Server Module Configuration is required as:
- `api_key`: generated in Fleet Protocol HTTP API (script/new_admin.py)
- `company_name`, `car_name`: used to identify the car in Fleet Protocol HTTP API
- `max_requests_threshold_count`, `max_requests_threshold_period_ms`, `delay_after_threshold_reached_ms`, `retry_requests_delay_ms`: explained in [HTTP client README](./lib/fleet-v2-http-client/README.md)

## Testing

All tests are contained within the `tests` folder. [Testing README](./tests/README.md)
15 changes: 15 additions & 0 deletions docs/mission_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,21 @@ The Autonomy keeps in memory the NAME of the next stop (the `nextStop` in the ac

The Autonomy device sends the car status to the Mission Module. The status contains a field `State` with the value corresponding to the state of the device (`DRIVE`, `IN_STOP`, `IDLE`, `OBSTACLE`, `ERROR`).

When the connection between module gateway and external server is dropped, stops are being removed from commands when certain conditions are met. When a stop is finished while offline, it is added to a list of stops in the error message, which will be sent on reconnection.

```mermaid
flowchart TD
command_gen(Command generation)
command_gen --> stop_size{{Any remaining stops in command?}}
stop_size -->|yes| in_stop{{IN_STOP car state in current status?}}
in_stop -->|yes| remove_check{{DRIVE car state in previous satus OR next station in command equal to next station in current status}}
remove_check -->|yes| remove_stop(Remove next stop from command)
error_aggr(Error aggregation)
error_aggr --> in_stop_2{{IN_STOP car state in current status?}}
in_stop_2 -->|yes| same_stop{{Last finished stop in error message different than current stop?}}
same_stop -->|yes| add_stop(Add current stop to finished stops in error message)
```

# Messages

## Structure
Expand Down
2 changes: 2 additions & 0 deletions lib/protobuf-mission-module/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
*.egg-info
Loading