Tagged: Motor speed; Overflow
November 10, 2018 at 4:11 pm #8204
I ran a test to see what happened to the motor when you set its speed to a variable, and that variable was greater than 100. Interesting results.
between 100 – 130 – same fast forward speed as 100
140 – stopped
230 versy fast backwards, getting slower as the variable approached 300
I stopped at 300.
Please can you consider putting a cap on the value used. 100.
I investigated this because I was getting unexpected results when using an analogue sensor to follow a line, and the mean speed approaches 100. It suddenly veered away from the line.
my algorithm has a speed differential of (Sensor value -128) * proportion constant. So you can see that students might set the constant high enough to end up with a motor speed greater than 130.November 11, 2018 at 1:38 pm #8205JosephKeymaster
Thanks for the feedback! I’ve just added a fix to the next release which should be available in the next couple of days.
JosephNovember 11, 2018 at 10:29 pm #8206
I forgot to say…
Could this limiting apply to values less than -100 as well please?
For those of us with motors wired backwards.November 12, 2018 at 9:41 pm #8217JosephKeymaster
The new software is available now. It does limit the speed between -100 and +100 inclusive.
JosephNovember 14, 2018 at 12:46 pm #8232
Tested it just now. Works fine, thanks.
- You must be logged in to reply to this topic.