REM First very rough outline draft provisional attempt at a skeleton version of the DAZLE rotation control DEFSUB track :REM Tracking loop REPEAT INPUT ; nextpos :REM Get the next target position from DICS PAUSE INKEY = "T" :REM Wait for a character to be input, and for that character to be "T" for trigger (I think...) currpos = ENCPOS :REM Store the current encoder position for later reference. newspeed = (nextpos - currpos) / dt :REM Calculate the new speed needed to hit next required position at end of cycle JOG = newspeed :REM Apply new speed to the motor PRINT currpos :REM Send the stored encoder position to DICS UNTIL FALSE ENDSUB