Replies: 1 comment 3 replies
-
You could do each of those in separate steps, right? The trick to the first step is to robot.turn(90 - robot.angle()) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am part of a WRO team and use the drive base functions frequently. These functions are very useful to us since it allows us to make very precise movements. For the most part, I think the list of functions are very complete, except for one thing. I think there should be a way to make the robot move straight some amount of distance, but while following a given heading angle. I know there is a way to activate gyro in the drivebase, but this one only follows the angle that it started in. So, for example, if it was facing 78 degrees it would move in that direction. What I want is something that if it started at any angle (78 degrees for example) it would first face the angle I defined (90 for example) and then move forward. This would help us at WRO since if we told the robot to move forward and it was misaligned, it would auto-align and then move forward.
Beta Was this translation helpful? Give feedback.
All reactions