int valve( valve_state_t state ) { switch( state ) { case VALVE_STATE_STUCK: //place pulse at full power here break; default: break; } }