Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed Jun 27, 2024
1 parent 022d5f5 commit 4fc5fee
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
21 changes: 20 additions & 1 deletion src/v2i-hub/MUSTSensorDriverPlugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,23 @@ To convert the heading to unit circle we simple subtract 270 degrees from any he

## Functionality Testing

Start up plugin and use `scripts/MockMUSTSensor.py` script to send mock detection data to plugin at 1 Hz.
Included in this directory is a script that can be used to provide Mock MUST Sensor data. Start up plugin and use `scripts/MockMUSTSensor.py` script to send mock detection data from a single mock object to plugin at 30 Hz. The script will update the timestamp of this object as well as move it randomly in space.

```bash
Script to mock detection data coming from MUST Sensor

options:
-h, --help show this help message and exit
--ip IP IP address to send detection data to.
--port PORT Port to send detection data to.
```

Addition addition objects for which to send mock detections can be done by appending detections to the `detections` array in the python script.

### Confirming Functionality

On startup of the plugin, the V2X-Hub Web UI should show the plugin as enabled and the `MUST Sensor Connection Status` should be `IDLE` reflecting that the plugin is listening for detections but has not yet received any.
![Alt text](docs/idle_connection.png)
After running the `MockMUSTSensor.py` script the `MUST Sensor Connection Status` should be `CONNECTED` reflecting that it is currently receiving valid messages from the MUST Sensor. Additionally the **Messages** tab will reveal that the plugin is also sending **SensorDetectedObject** messages as a result.
![Alt text](docs/connected_connection.png)
A status of `DISCONNECTED` represents some error behavior that is likely related to the connection or the incomming data. Please inspect configuration parameters on the MUST Plugin and the MUST Sensor Detection data and confirm it is valid
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/v2i-hub/MUSTSensorDriverPlugin/scripts/MockMUSTSensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def main():
for detection in detections:
update_detection(detection)
send_detection(sock,detection,host)
time.sleep(1)
# MUST Sensor broadcasts detection data at 30 Hz
time.sleep(0.0333333)

if __name__ == '__main__':
main()

0 comments on commit 4fc5fee

Please sign in to comment.