Expand description
Contains the functionality for reading and postprocessing tank level switch position by reading GPIO pin state
Structsยง
- Tank
Level Switch - Contains the measurement of tank level position and calculation of stabilized tank level position signal. Tank level position is measured by accessing the state of a dedicated GPIO pin. Alternatively, TCP communication is used when configured to run with the simulator. The struct holds attributes for the results and for error flags indicating unsuccessful communication. Thread communication of this component is as follows:
- Tank
Level Switch Signals - Contains all signal information from the tank level switch relevant for other threads:
Enumsยง
- Tank
Level Switch Error - Contains error definitions for TankLevelSwitch
Constantsยง
- CYCLE_
TIME_ ๐TANK_ LEVEL_ SWITCH_ MILLIS - application is monitoring if execution duration can maintain this limit sleep time is adjusted accordingly to run at fixed execution time
- MAX_
MUTEX_ ๐ACCESS_ DURATION_ MILLIS - allow max. 10 milliseconds for mutex to be blocked by any other thread
- PERMISSIBLE_
CYCLE_ ๐TIME_ DEVIATION_ TANK_ LEVEL_ SWITCH_ MILLIS - application is adapting the sleep time to achieve constant execution rate of 100 milliseconds. this is the threshold from which on the cycle time monitoring alerts.