View Single Post
  #7   Spotlight this post!  
Unread 15-01-2015, 15:35
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,187
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: FRCSim Mecanum Drive example help

Quote:
Originally Posted by Cinnamon Toast View Post
Hi Guys,

This seems to be a good place to put my questions. I noticed that u2fletch in his code for mecanum_cartisian used 0 for the 4th argument of the robot drive object. From my understanding (and please correct me if I'm wrong) I believe a gyro is used so that you get field centric strafing when driving. This means that when no matter what your rotation, the robot will still straif to left (therefore the robot itself is moving backwards) right? Say I don't want field centric movement like this, and would like robot centric drive. Does that 0 value make the drive robot centric? Any help is really appreciated. Thanks guys!
Yes, including the 0 in the mecanumDrive_Cartesian object causes the robot to always think it is facing away from the driver, effectively creating robot-centric drive.
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)