View Single Post
  #2   Spotlight this post!  
Unread 06-01-2015, 16:10
u2fletch u2fletch is offline
Registered User
FRC #4610 (BearTecs)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2012
Location: Bastrop, TX
Posts: 3
u2fletch is an unknown quantity at this point
Re: FRCSim Mecanum Drive example help

Okay, so broke down and used RobotBuilder to build a sample robot. 4 motor config with a single Sidewinder3D joystick. Here is the code for the Drivetrain class:

public void takeJoyStickInput(Joystick joy){
robotDrive41.mecanumDrive_Cartesian(joy.getRawAxis (1),joy.getRawAxis(2),joy.getRawAxis(0),0);
}

Needed to use the getRawAxis() function to map the axes properly on the Sidewinder, but the problem is that the FRCSim robot drives just like tankdrive. Fore-aft joystick moves as expected, twist rotates the robot, but left-right joystick just gives you forward and back just like the fore-aft.

The RobotBuilder says it supports holonomic drive under the 4 motor controller, so I am wondering if FRCSim does NOT model that type of drive?