RoboJackets / robocup-software

Georgia Tech RoboJackets Software for the RoboCup Small Size League
Apache License 2.0
183 stars 187 forks source link

Fix wheel velocity commands to be metric units #12

Closed ehuang3 closed 10 years ago

ashaw596 commented 10 years ago

Notes: send bodyx and bodyY command to robot which gets converted to motor signals. Soccer program is using units, but no units associated with the robot motor controls. @ashaw596

ashaw596 commented 10 years ago

The Gearbox ratio is 4 to 1

ashaw596 commented 10 years ago

The wheels are 40 degrees slanted more towards front and back.

ashaw596 commented 10 years ago

From the radio-protocol-2011.txt Physical units for 2011 robots: Times are given in control cycles (5ms/cycle). 1440_4.5 = 6480 ticks/rev Distances are given in encoder ticks. 0.026_2_pi m/rev / (1440_4.5 ticks/rev) = 0.026_2_pi/(1440_4.5) m/tick Wheel angular distance: (2_pi rad/rev) / (14404.5 ticks/rev) = pi/3240 rad/tick Robot angular distance: pi/3240 rad/tick * 0.026 / 0.0812 = pi.026/(.0812*3240) robot-rad/tick = 203/776000 rad/tick

ashaw596 commented 10 years ago

90 between each wheel.

ashaw596 commented 10 years ago

About 5750 Encoder Ticks per revolution

ashaw596 commented 10 years ago

About 120 cm per 5 wheel revolutiosn moving sideways one 2011 robots.

ashaw596 commented 10 years ago

5750 * 5 / 120 = About 240 encoder ticks per centermeter

ashaw596 commented 10 years ago

About 240 encoder ticks per centermeter * 0.005 seconds between encoder checks. = about 1.2 encoder ticks per (centermeter/ second)

ehuang3 commented 10 years ago

@ashaw596 Here are a few comments:

Sorry for not grasping what the issues actually were earlier. Keep up the good work!

barulicm commented 10 years ago

Sorry, too many buttons :(

justbuchanan commented 10 years ago

:trollface: