Index: firmware/App/Controllers/Valves.h =================================================================== diff -u -rb569bc796c56acd5d94d468386f5f42c350cad65 -rdc4b4fddff7b3ceb6de191eed9c181d2508544ee --- firmware/App/Controllers/Valves.h (.../Valves.h) (revision b569bc796c56acd5d94d468386f5f42c350cad65) +++ firmware/App/Controllers/Valves.h (.../Valves.h) (revision dc4b4fddff7b3ceb6de191eed9c181d2508544ee) @@ -7,8 +7,8 @@ * * @file Valves.h * -* @author (last) “Raghu -* @date (last) 03-Feb-2026 +* @author (last) Dara Navaei +* @date (last) 19-Feb-2026 * * @author (original) Vinayakam Mani * @date (original) 26-Aug-2024 @@ -46,11 +46,6 @@ NUM_OF_RECOVERY_STATES ///< Number of recovery states } RECOVERY_STATE_T; -#define NUM_OF_DD_VALVES ( ( LAST_DD_VALVE - FIRST_DD_VALVE ) + 1 ) -#define NUM_OF_IOFP_VALVES ( ( LAST_FP_VALVE - FIRST_IO_VALVE ) + 1 ) -#define NUM_OF_IO_VALVES ( ( LAST_IO_VALVE - FIRST_IO_VALVE ) + 1 ) -#define NUM_OF_FP_VALVES ( ( LAST_FP_VALVE - FIRST_FP_VALVE ) + 1 ) - #pragma pack(push, 1) /// Valves publish structure typedef struct @@ -66,12 +61,13 @@ { U08 valvesIOState; ///< Commanded IO valve states (bits). U08 valvesFPState; ///< Commanded FP valve states (bits). - U08 valvesSensedState[ NUM_OF_IOFP_VALVES ]; ///< Sensed FP valve states (enumerations). + U08 valvesSensedState[ LAST_FP_VALVE - FIRST_IO_VALVE + 1 ]; ///< Sensed FP valve states (enumerations). } FP_VALVES_DATA_T; /// Balancing chamber valve states override structure typedef struct { + BOOL reset; ///< Reset (bool) U32 valveStatesBits; ///< Bits indicating whether balancing chamber valve states should be open(1) or closed(0). } DD_BC_VALVE_OVERRIDE_PAYLOAD_T; #pragma pack(pop)