|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Alligning swerve modules (and other problems)
This was never a problem for us throughout the season. Never noticed any slipping.
Here's my attempt at a mechanical explanation of how we did it: The wheel is attached a triangle holding box thing which is attached to a stick which is attached to a gear which is attached to another gear or something which is attached to a stick which is attached to an absolute encoder. Sorry, I'm a programmer. The most crippling swerve issue for us was gyro alignment, as we used a field centric system. Sometimes the gyro would just go nuts, creating a phenomenon we like to call the "drunken apple"' ![]() After putting the gyros in a protective shock-absorbing case, we didn't have any problems with complete gyro craziness, although gyro drift was still present and annoying. We have to zero the gyro many times during a match. This is probably the biggest problem we've had with swerve, and I'm not quite sure how to fix it. Last edited by cjl2625 : 04-07-2014 at 18:35. |
|
#2
|
||||
|
||||
|
Re: Alligning swerve modules (and other problems)
Hall effect sensors would be good if you are okay with wires. Otherwise, you can use a rubber tube stretched between the modules to straighten them out relative to each other before "zeroing" their encoders.The holes for the rubber tube need to be above the axle on the wheels.
I think 1640 had something on it. |
|
#3
|
|||
|
|||
|
Re: Alligning swerve modules (and other problems)
We use continuous rotation 360 degree absolute encoders on our coaxial modules. All modules are identical. We calibrate our modules on or off the robot. We use the convention of looking at the module from the front, the wheel sprocket is to the right. We get the wheel pointing straight forward by eye, twisting it back and forth making sure it is centered. (more lash than I like). We connect Ground and 5 volts to the sensor. Signal and ground to a volt ohm meter. We loosen up the set screw on the beam coupler and twist till we get the 0.25 - 4.75 volt crossover position. Tighten the set screw. One of our mentors made a break out board to make this easier. This also can be done by the crio and dash board. We did have problems in the past with plastic beam couplers from automation direct loosening and loosing calibration. This year we used the First choice voucher and use the Al beam couplers. No slipping. We have had arguments over calibrating to the cross over point or 2.5 volts. I don't think it matters. When things get out of calibration, the code is bad or something else is wrong, our team calls it the happy dance. The drunken apple? I think I know were that came from. I call it a grand mal seizure.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|