Home 2018 › Forums › Crumble › Development › Motor speeds greater than 100
Tagged: Motor speed; Overflow
- This topic has 4 replies, 2 voices, and was last updated 5 years ago by
Dr John.
-
AuthorPosts
-
November 10, 2018 at 4:11 pm #8204
Dr John
ParticipantI 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 – stopped230 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 #8205Joseph
KeymasterHi,
Thanks for the feedback! I’ve just added a fix to the next release which should be available in the next couple of days.
Best wishes,
Joseph
November 11, 2018 at 10:29 pm #8206Dr John
ParticipantMany thanks
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 #8217Joseph
KeymasterHi,
The new software is available now. It does limit the speed between -100 and +100 inclusive.
Best wishes,
Joseph
November 14, 2018 at 12:46 pm #8232Dr John
ParticipantTested it just now. Works fine, thanks.
-
AuthorPosts
- You must be logged in to reply to this topic.