Just a calculation for speed/direction from the motor control ui.