Nitrof,
my suggestion
UI: use a slider with a centered zero for your speed. a 360° dial indicator or something nifty with picture control as a position indicator, and a diagram for your pulses.
Program: a loop with shiftregister for position. read speed , calc new position, generate pulsetrain
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'