I have been working on the CAD for the robot recently, and our drive team is looking to use arcade drive for the first time in our team’s experience. I have been searching WPILib, and for some reason I can’t understand how to get it to work.
You are just calling the namespace entry statically right?
Do you actually have an instance of a RobotDrive in your code somewhere, because you need one…
Edit to add:
Your code needs something like:
frc::RobotDrive m_drive( motor_controllerleft, motor_controllerright);
..... Sometime later in the code ......
m_drive.ArcadeDrive( forwardSpeed, turnAmount)
The stuff above should get you working. The reason this doesn’t work is that ArcadeDrive() is an object method, that is, you have to have a specific RobotDrive object to drive. The syntax you used is appropriate for a class method, such as a constructor or a library function.
I have been trying all day and nothing seems to work. Does any of this change if I am using a CAN bus with VictorSPX motor controllers, because everything I’ve seen is for PWM controllers.