trying to get both Polarization and powe mode to work
trying to get both Polarization and powe mode to work
started from the beginning and added a bunch of mutexes to the code to try make it thread safe
changed things so that the bof file is only restarted when absolutely necessary- this is to avoid changes in the power level that seemed to happen if the bof file was stopped and restarted.
checked the the NTP time and the 1PPS are consistent.
Trying to make sure both power and polarization modes work.
 added the version information to a text file so remains intact after a restart.
first commit
First attempt at the code where it writes the appropriate version number (polarization/power mode) to a file to determine what mode it starts in- this allows us to run a bash while loop and just exit the script if there are any problems
before making major changes to the code
before making major changes to the code
changed tets_thread to command_thread
CJC--changed a whole bunch of things to reduce the load on the CPU-used to be ~100% due to the polling on the accumulation counter- I've now added a bit more delay before the accumulation polling so it spends less time in there- CPU usage is now down to 32%. I also disabled the 1PPS checking for the moment. I think this high CPU may have been what was causing things to fall over- Lets see
added a lot of stuff