CarletonURocketry / ground-station

The ground station software used to interface with the ground station LoRa board and distribute signals from the rocket across websocket connections.
https://carletonurocketry.github.io/ground-station/
MIT License
7 stars 6 forks source link

Add packet header and block header exceptions on invalid fields #90

Closed EliasJRH closed 8 months ago

EliasJRH commented 8 months ago

This PR refactors the ground station parsing logic and header classes so that exceptions are thrown and caught when attempting to create a class with an invalid field value.

These values could include

Any exception thrown by a header class is caught in telemetry_utils.py. The process will discard the entire packet upon catching an exception.

Closes #85