

KoP inventory  it's the FIRST version of opening Christmas presents.  BigJ [more] 




Thread Tools  Rate Thread  Display Modes 

#1




Theoretical Method For Tank Rotation
Our robot's chassis has 3 wheels on each side in a basic tank configuration (minus the treads). I'm trying to find the number of rotations the wheels would have to move to rotate the entire robot a certain angle, assuming both sides spin opposite of each other to do so. I know I could just count the rotations using an encoder by starting the counter and then rotate the robot manually, but I'm asking if there is a way to look for the number using math instead of trials.
I'm sure there's a simple method to my problem, but I'm having trouble wrapping my head around it. 
#2




Re: Theoretical Method For Tank Rotation
Quote:
My guess is: r=1/2*track Θ=90° assuming your turning center is located midway between your center wheels. 
#3




Re: Theoretical Method For Tank Rotation
Quote:
As for the gyros, that probably would have been a better idea. 
#4




Re: Theoretical Method For Tank Rotation
My team uses almost the exact same configuration.
However We use a Gyroscope for the Rio to measure this sort of thing. There are many different kinds of gyros to buy for the Rio, with varying degrees of difficulty. 
#5




Re: Theoretical Method For Tank Rotation
I strongly recommend using a gyro (eg, navX) for this. You'll get MUCH better results with a gyro, and they're not terribly hard to integrate.
If you really can't switch to a gyro at this point, you can get the values empirically by logging the encoder counts to smartdashboard and turning your robot as described. If you do the logging in periodic() you can turn manually without even enabling the robot. Last edited by BenBernard : 02132018 at 09:53 AM. 
#6




Re: Theoretical Method For Tank Rotation
Quote:
Gyro would seem to be the way to go, in my mind. Directly measure the thing you care about. I would say your solution would yield an intermediatequality result. I can't recall where I saw it, but some teams did use this method to determine the feedforward portion of rotation calculations. 
#7




Re: Theoretical Method For Tank Rotation
Run a motion profile that spins the robot in place by turning the wheels a known distance. Do some division to calculate the robot's "effective trackwidth" from the resulting angular displacement (which you should measure, either with a gyro or otherwise).
The "effective trackwidth" stays pretty reliably constant, in our experience. 
#8




Re: Theoretical Method For Tank Rotation
we use encoders with a PID. We convert encoders ticks to degrees with a variable that you have to find. Basically, we ask to robot to turn 360 degrees, then calculate the offset. If there was too much rotation, we tune it down a bit, and vice versa. We don't like the arc method, because it does not consider wheels spinning.

#9




Re: Theoretical Method For Tank Rotation
Quote:
Are all three wheels on each side chained/belted together? Or are some of them not driven (or independently driven)? Are all wheels traction or are some omni? How much drop do you have on the center wheels? Where's your center of mass? 
Thread Tools  
Display Modes  Rate This Thread 

