View Single Post
  #4   Spotlight this post!  
Unread 25-01-2011, 21:23
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How to program mecanum wheels with two joysticks

Quote:
Originally Posted by wilsonmw04 View Post
1.Will it be easier to: a: change the NI VI to allow us to strafe correctly
I am not aware of any issues with the LabVIEW vi. So I don't think you want to change it. Your problem likely lies elsewhere. If you would post your code I'd bet someone here could help you find it (the problem).

Quote:
or b: integrate the gyro to stabilize our drive base using our own code?
Not sure what you mean by "stabilize" your drive base. The gyro support in the LabVIEW vi is for field-centric control of the translation commands. If your drive base is not "stable" (e.g. turns when not commanded), the gyro support in the LabVIEW vi will not stop it from doing so. It will simply make it so the vehicle keeps going in the commanded direction while rotating. If you want to add the aforementioned gyro support (ie field-centric control) to your own code, all that is required is to do a coordinate rotation of the translation portion of the command.


If you want to use the gyro to prevent unwanted rotation, or to make the robot turn and align with a joystick direction command, that can be done, but it's a separate problem from the field-centric gyro support built in to the LabVIEW vi.




Last edited by Ether : 25-01-2011 at 21:29.
Reply With Quote