Added setDutyCycle function to set the duty cycle of a axis