Closed stenbergd closed 8 years ago
Perhaps do not do this for receiver since it has 6 channels that will not be updated simultaneously.
For sensors, do sem give every time a new sensor value is taken. It doesn't matter if the other sensor values haven't been updated just print it all anyway.
When starting sampling task, create the semaphore. Then delete it when stopping task. (Check that it is not NULL before giving, taking and deleting!)
Maybe we should ignore this for now... Closing.
To get "live" printing of values from print sampling tasks, perhaps use a semaphore that gives after each reading of receiver values, sensor values etc.