View Single Post
  #10   Spotlight this post!  
Unread 29-11-2016, 19:45
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,207
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: Team 4926 Swerve Drive CAD

Quote:
Originally Posted by marshall View Post
Math? Yes. Simple? No.

I will give you that the SRX libraries and CTRE sensors make this easier by overflowing and counting ticks and keeping them across reboots but it's not as simple as multiplying by a gear ratio. You also need to account for the angle over time and deal with different offsets for each module. Not to mention that least-turn-angle is a lot easier to implement without all of this.

Also, keep in mind the processing power of the controller and the fact that you are multiplying calculations by 4 for all of the modules. Swerve is CPU intensive and anyone who says otherwise isn't logging that data or paying any attention to it. Also keep in mind the limitations of the closed loop calculations that you can do on the Talons. PID is a lot easier with 1:1.

There is a reason other swerve designs incorporate 1:1 turning encoders. Teams went crazy in 2015 trying to figure out how to do it for the AM Swerve modules. Triple Strange just posted a design that had some not-so-simple machining to do it. Check out the 221 site and you'll see 1:1 for turning on all of their designs and crab chassis. There is a reason for this. This is a bigger headache than folks seem to think.
The scheme I was imagining in my head involved using a hall effect sensor to zero the rotary position, following which pure quadrature/index would be used to find angle by dividing by a gear ratio. If you're using absolute positioning instead of quadrature, I can see a lot of problems, but as long as you either zero it via magnet or via index signals, I don't quite see the problem. Is there more to it than that?


To OP: If your dog shifting was not able to work on the fly, were you using a cylinder to shift? If so, then ball shifting should work well for you as it requires less force to shift.
__________________
<Now accepting CAD requests and commissions>

Reply With Quote