Replies: 2 comments 4 replies
-
What is the underlying goal? Is it truly to drive with time, or is it because you'd like to drive into a wall to align the robot, or something similar? |
Beta Was this translation helpful? Give feedback.
-
I also wanted something like this to be built in, but ultimately decided against it. We agree that it is cleaner and easier for the kids to understand if it is one line, so the answer is, "do it!". Write a base class and build all of the movement commands that you will need. DriveForDistance. DriveForTime. DriveUntilStalled. Curve. Etc. etc. We worked on our BaseRobot class over the summer, and we have plans to do the same again this summer. Most of our methods are just a couple of lines long, and really pretty easy to understand. It's a great way for the more advanced kids to get their first introduction to Object-oriented programming. We did a lot of testing, and we documented everything the Judges loved that type of engineering process. Good luck! |
Beta Was this translation helpful? Give feedback.
-
Just like there is drive base with mm (distance) can you please introduce drive base with time as well? I know there is a work -around like put drive base and then put a wait like time, however having it one line will make it so cleaner.
Beta Was this translation helpful? Give feedback.
All reactions