Index: firmware/App/Drivers/RotaryValve.h =================================================================== diff -u -ra074eec2ed7d04a1ea90072d7c9c013bf27a6e90 -r9d11c51da60da3f8d2917433938a583f8a105318 --- firmware/App/Drivers/RotaryValve.h (.../RotaryValve.h) (revision a074eec2ed7d04a1ea90072d7c9c013bf27a6e90) +++ firmware/App/Drivers/RotaryValve.h (.../RotaryValve.h) (revision 9d11c51da60da3f8d2917433938a583f8a105318) @@ -35,7 +35,7 @@ #define ROTARY_VALVE_MICROSTEP_FRACTION 8 ///< Rotary valve motors configured for 1/8 step microstepping. #define ROTARY_VALVE_GEAR_RATIO 3.7F ///< Rotary valve motor gear ratio is 3.7:1. -#define ROTARY_VALVE_INIT_FULL_SWING_COUNTS 1760 ///< Rotary valve swing arm travel range is appx. micro steps. +#define ROTARY_VALVE_INIT_FULL_SWING_COUNTS 1880 ///< Rotary valve swing arm travel range is appx. micro steps. #define ROTARY_VALVE_ENERGIZED_EDGE_MAX_COUNTS 1900 ///< Rotary valve energized edge maximum allowed counts. #define ROTARY_VALVE_ENERGIZED_EDGE_MIN_COUNTS 1700 ///< Rotary valve energized edge minimum allowed counts. @@ -55,6 +55,11 @@ void setValveCmdChangePosition( VALVE_T valve, U16 mag, MOTOR_DIR_T dir ); S16 getValveEncoderPosition( VALVE_T valve ); +void resetValve( VALVE_T valve ); +void resetValveEncoder( VALVE_T valve ); +void enableValve( VALVE_T valve ); +void setValveZeroEncoderPosition( VALVE_T valve ); + BOOL testValveEncoderPositionOverride( MESSAGE_T *message ); BOOL testValveStatusOverride( MESSAGE_T *message ); BOOL testSetValve( MESSAGE_T *message );