Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Camera feed not monitored by cockpit #235
The current cockpit software does start the mjpeg streaming process, but it does not monitor it. Dues to instability in the USB on the beaglebone (DMA not on), and potential restarts in the cockpit software itself, the system needs to check the status of the mjpeg streamer service and restart it in the case it dies. The system should also be smarter when cockpit restarts and no error out if the mjpeg streamer process is already running.
The camera should be decoupled from the cockpit software. The contract should be the URL of the feed from the camera for video. There should also be a contract for setting the parameters for the video such as fps and resolution.
Assuming we are still using mjpegstreamer, that implies standing up a service with a messaging API that listens for changes events and can then cycle the mjpegstreamer service. This service will also need to manage the mjpegstreamer process for failures and auto-restart the service.