View Full Version : mecanum coding
The Ginger
16-11-2016, 23:56
he CD, I just wanted to quickly ask (I know I could find a answer with a little effort) if you have any code or videos explaining how to right code in c++ for a mecanum drive-train. i am on drive team and lead final assembly but have no knowledge of coding. our programmer is currently busy for the next week or two and I want to get a mecanum drive-train I resurrected driving for pre-season training/practice. If you can help post below. now time to finish my analytical essay on Oedipus.
-sincerely: a over scheduled robot freak
Screensteps Live has a nice little tutorial :) (http://wpilib.screenstepslive.com/s/4485/m/13809/l/599704-driving-a-robot-using-mecanum-drive)
nickbrickmaster
17-11-2016, 00:09
Oedipus Rex is a good play. What I found most interesting was the prophecy and the illusion of control. Despite knowing what would happen (because the Oracle is never wrong) Jocasta and Laius tried to divert fate, and prevent Oedipus from fulfilling the prophecy. In doing so, they caused the outcome (of course). However, Jocasta killed herself when she found out, and Oedipus blinded himself. Was this their punishment for tempting fate? Did they feel responsible for the outcome? Do they really have free will?
You can control a Mecanum drive using one of two methods in RobotDrive. Here's a link to one of them. You really just need to plug in joystick values, and set gyroAngle to 0 if you are doing robot-centric control.
http://first.wpi.edu/FRC/roborio/stable/docs/cpp/classRobotDrive.html#a2e7fa1a9713332281012e8aae5d9 570e
The Ginger
17-11-2016, 19:00
thanks for the help!
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.