Index: firmware/App/Controllers/AirTrap.c =================================================================== diff -u -ra2bc96881a5fc3d8f779246b2abebf15a8de9384 -r6b870cd0699bb3ee22b93981d51373a6c2d56162 --- firmware/App/Controllers/AirTrap.c (.../AirTrap.c) (revision a2bc96881a5fc3d8f779246b2abebf15a8de9384) +++ firmware/App/Controllers/AirTrap.c (.../AirTrap.c) (revision 6b870cd0699bb3ee22b93981d51373a6c2d56162) @@ -31,11 +31,14 @@ */ // ********** private definitions ********** + +/// Interval (ms/task time) at which the air trap data is published on the CAN bus. +#define AIR_TRAP_DATA_PUB_INTERVAL ( MS_PER_SECOND / TASK_PRIORITY_INTERVAL ) +/// Persistence period for illegal level sensors fault. +static const U32 AIR_TRAP_ILLEGAL_LEVELS_PERSISTENCE = ( MS_PER_SECOND * 2 / TASK_PRIORITY_INTERVAL ); +/// Volume (in mL) of venous portion of blood circuit line. TODO - get actual volume from Systems. +#define VENOUS_LINE_VOLUME_ML ( 200.0 ) -#define AIR_TRAP_DATA_PUB_INTERVAL ( MS_PER_SECOND / TASK_PRIORITY_INTERVAL ) ///< Interval (ms/task time) at which the air trap data is published on the CAN bus. -#define AIR_TRAP_ILLEGAL_LEVELS_PERSISTENCE ( MS_PER_SECOND * 2 / TASK_PRIORITY_INTERVAL ) ///< Persistence period for illegal level sensors fault. -#define VENOUS_LINE_VOLUME_ML ( 200.0 ) ///< TODO Volume (in mL) of venous portion of blood circuit line. - /// Defined states for the air trap controller state machine. typedef enum AirTrap_States {