Skip to content

Amytjea/crash on dash#174

Open
AmyTjea wants to merge 6 commits into
masterfrom
amytjea/crash-on-dash
Open

Amytjea/crash on dash#174
AmyTjea wants to merge 6 commits into
masterfrom
amytjea/crash-on-dash

Conversation

@AmyTjea

@AmyTjea AmyTjea commented Dec 20, 2023

Copy link
Copy Markdown

Description

Adds a pop up modal alerting to the crash of V3 to all pages which monitor V3 (i.e Dashboard, Logs, Status, Boost and Camera system pages when observing V3)

The modal will appear when the crash detection topic (/v3/wireless_module/3/crash_detection) sends a true value.
It will provide the timestamp of the latest detected crash, along with the number of crashes which have occurred if the modal hasn't been dismissed and the bike has crashed again.

Screenshots

image

image

Steps to Test

Use the following command in the terminal to simulate a crash occurring:

mosquitto_pub -t "/v3/wireless_module/3/crash_detection" -m '{\"value\":true}'

To simulate a false value, simply change the above to false.

Use the command multiple times to check the counter works as intended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants