Major changes regarding in-process watch-dog architecture. Two watch-dog threads are introduced in this version. The level 1 watch-dog signals the Gstreamer pipeline for termination, in case the data traffic for some reason falls below certain quality conditions. The level 2 watch-dog ensures that the overall process can never be found in deadlock/frozen state.
No need to test of execution flag in filesystem anymore. Removed from videosource execution loop.
commandserver: any read error on the event threads causes an exit
Merge branch 'develop' of github.com:chpap/ptu-software into develop
Low datarate signaling via the filesystem (flag file) feature reenstated. The level 1 watchdog thread no longer issues destruction signals to Gstreamer pipeline. Instead it outputs a specific flag file of predefined format to alert outer supervisors about its low traffic state. Moreover level 2 watchdog sleep time between iterations is exposed as a parameter in the configuration file. Sample configuration file went through the necessary changes.
Minor change.
videosource: modified videosrcloop.sh to check for presence of camera
pwm-mod: modified tunes script to accept input arguments and added shutdown tune to wpss-system.sh
commandserver: modified default configuration file for panic button action
battery-check.sh: added script that handles battery status leds