burley wrote:You say "It didn't work". What exactly happened?
In general you should just set the range of the sliders to be some arbitrarily large numbers. There should be no need to change the range of the sliders dynamically.
burley wrote:I am not sure why you couldn't just specifiy the amount of movement you want based on the guitar type instead of adjusting the range of the slider. It is not as though you need to move the slider the full range every time. You could just set it up such that when you select guitar type A the motor moves to position A and when you select motor type B the motor moves to position B.
The range of the sliders does not need to be adjusted dynamically for this to occur.
Code: Select all
while(count is not 0)
motor position = motor position + X
motor position = motor position - X
Users browsing this forum: No registered users and 2 guests