OpenStratos / server

Server implemented in C++14. It will be in charge of the management of the balloon.
GNU General Public License v3.0
6 stars 1 forks source link

If camera fails it's not recovered #39

Closed Razican closed 9 years ago

Razican commented 9 years ago

Currently, if the camera fails, it will not recover. It will try to stop the video, but pkill returns status code != 0, so it thinks it did not stop, so it does not try to restart recording / taking pictures.

This is a minor issue (the program continues, and all the other components work perfectly), but we would lose all the video footage since the camera fail. We should try to recover the camera and record the rest of the footage.

Maybe we could have a thread check the recording status each x seconds and if it fails, restart the recording. On the other hand, when trying to take a picture, we could check if the raspivid process is still running, and if not, assume it has failed and try to recover it.

Razican commented 9 years ago

It seems that this is still happening.