The config.camera.type allows us to configure which camera is being used at runtime in obc.cpp. This feature current does not support the new udp-client. On top of that, the camera intrinsics + serveral other configs are hardcoded in rp_connection.hpp.
TODO:
- Prune
rp_connection.hpp to avoid hard-coding of configs (resolution, buffer, ip, port, etc.)
- Some stuff will be static/constant so they can be hardcoded elsewhere (headerSize, magic, chunk, header struct, etc.)
- Modify
rpi.cpp to utilize CameraConfig over hard-coded values in rpi_connection.hpp