Have you checked that the potentiometers are connected to the right pins? (channel to A0, step length to A1, shift to A2)
The code is a bit chaotic
and I haven’t traced all paths, but I noticed that the channel selection is read from two different ports: setup() which is run once, to set everything up, has
StepLength = analogRead(1);
CHANNELSELECT= analogRead(2);
but loop() has
KnobVal = analogRead(2);
CHANNELSELECT= analogRead(0);
StepLength = analogRead(1);
which matches the layout. If you’re 100% sure that you’re using the right pins, you could try changing the CHANNELSELECT read in setup() to use port 0 and see if that changes anything.