Preseason Lesson6

From 1511Wookiee
Revision as of 11:38, 15 December 2019 by Programming (talk | contribs) (Created page with "<div class="mw-parser-output"><div class="mw-parser-output">'''<font size="4">Turbo and Slow speed</font>'''</div> <div class="mw-parser-output">At the end of [http://penfield...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Turbo and Slow speed
At the end of Lesson 4 you had had the joystick controlling the speed of the motor, by mapping the joystick position directly to the motor speed.
That is full speed, or what we call "Turbo" speed.
Most of the time we do not run at that speed.
There are other times we want to run at slower speed to have better control over the robot, what we call "Slow" speed.
 
You want the trigger to control normal speed.
If button 6 is pressed, then you want the motor to go "Turbo" speed.
If button 7 is pressed, then you want the motor to go "Slow" speed.
 
To keep this exersice simple
  • normal speed is running the motor at 1/2 the josystick value
  • "Turbo" is mapping the joystick directly to the motor speed.
  • "Slow" is running the motor at 1/4 the joystick value