Log in

View Full Version : Mecanum wheels code for c++


MoMo
23-01-2013, 13:52
Hello, we are having a problem with finding/writing a program that will work with mecanum wheels. We are using a Logitech extreme 3D pro. We need help with writing a c++ program that will work; This is our 1st year writing in c++ and we are not the best at it. Any help would be amazing, thank you.

Andrew Schreiber
23-01-2013, 14:19
Look into RobotDrive::MecanumDrive_Cartesian or RobotDrive::MecanumDrive_Polar.

These can be found in RobotDrive.h in the WPILib. There may be documentation too but I don't have that handy.

MoMo
23-01-2013, 14:32
How do we get or see this WPIlib?

MoMo
23-01-2013, 14:50
Dose anyone have a simple ex.?

Andrew Schreiber
23-01-2013, 14:57
In project explorer (pic (http://d.pr/i/eyDR))

You should see Includes, expand that and you should see a list of libraries (in my picture it's already expanded).

Expanding the one that ends in WPILib will show you all the header files in WPILib. I then navigated to RobotDrive.h and searched for Mecanum.

You SHOULD be including WPILib if you used one of the default templates to get started.