View Single Post
  #18   Spotlight this post!  
Unread 06-02-2015, 13:09
cstelter cstelter is offline
Programming Mentor
AKA: Craig Stelter
FRC #3018 (Nordic Storm)
Team Role: Mentor
 
Join Date: Apr 2012
Rookie Year: 2012
Location: Mankato, MN
Posts: 77
cstelter will become famous soon enough
Re: Mecanum drive cartesian problems

Quote:
Originally Posted by GeeTwo View Post
We got our Mecanum Drivetrain Code working in field coordinates in December; click for the code on github. This is based on cRIO, but shouldn't need too much tweaking. This is built on the command based robot model.
Out of curiosity, why do you drive at 70% joystick readings in cartesian mode but full power in Polar mode?

Is there a purpose to Polar/Cartesian switch? Isn't calling cartesian with gyro-angle==0 equivalent to to calling Polar? Perhaps it is meant to switch between field-centric and robot-centric?

Not sure the CommandBase class will work in this year's lib so it may not just be load/go. Also, I think atan2 is on Math now, not MathUtils because we have proper java this year, so those are the obvious tweaks I see that will be necessary

Last edited by cstelter : 06-02-2015 at 13:44.
Reply With Quote