Index: firmware/App/Controllers/Valves.h =================================================================== diff -u -r2a2d6a224532304e29f948fc43711ee6e99f915b -r7ce686fa967206c341805b79916298ae187854de --- firmware/App/Controllers/Valves.h (.../Valves.h) (revision 2a2d6a224532304e29f948fc43711ee6e99f915b) +++ firmware/App/Controllers/Valves.h (.../Valves.h) (revision 7ce686fa967206c341805b79916298ae187854de) @@ -46,20 +46,24 @@ S16 currentPos; ///< Current position in counts S16 nextPos; ///< Next position in counts F32 current; ///< Current of the valves - S16 prevPos; ///< Previous position in counts + S16 posC; + S16 posA; + S16 posB; } HD_VALVE_DATA_T; +// TODO REMOVE the struct typedef struct { S16 currentPos; F32 current; S16 cmdPosition; } HD_VALVE_FAST_DATA_T; #pragma pack(pop) +HD_VALVE_FAST_DATA_T fastDataRemoveLater; +// TODO REMOVE THE struct HD_VALVE_DATA_T valveData; ///< Valves data struct -HD_VALVE_FAST_DATA_T fastDataRemoveLater; // ********** public function prototypes ********* @@ -69,7 +73,7 @@ void execValves( void ); -BOOL homeValve( VALVE_T valve ); //TODO does it need to return bool? +void homeValve( VALVE_T valve ); BOOL setValvePosition( VALVE_T valve, VALVE_POSITION_T position );