DriveBase.angle() Optimizations #1808
-
Hello, it's me again! axle_track = 72 # mm
wheel_diameter = 43.2 # mm
wheel_circumference = math.pi * wheel_diameter
left_motor = Motor(Port.A)
right_motor = Motor(Port.D)
robot = DriveBase(left_motor, right_motor, wheel_diameter, axle_track)
current_angle = robot.angle() % 360 I think I'm doing everything correctly, but knowing me, it's something really obvious that i didn't catch.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Update on this, I've changed up my robot design to test axle track variations, and it's still way off. |
Beta Was this translation helpful? Give feedback.
-
The robot determines the With wide or soft wheels, the parameters aren't usually the exact value you'd find with a ruler, but you'll want to improve them experimentally. See the |
Beta Was this translation helpful? Give feedback.
The robot determines the
angle
based on the rotation of the motors and the parameters that you give it.With wide or soft wheels, the parameters aren't usually the exact value you'd find with a ruler, but you'll want to improve them experimentally. See the
Measuring and validating the robot dimensions
section here for a recipe.