![]() |
Mec wheel help
I was wondering if anyone could point me to some basic, working C++ mecanum drive code. We have successfully compiled and deployed code using the cartesian and polar mecanum drive methods, but our robot behaves in unexpected ways when we try to run the code in teleop.
First, the robot's wheels start moving before the joystick is even touched by the drivers. Then, when they do push forward and back and left and right on the joystick, is seems to have no effect on the drive train. We're using the 3 D joystick. We aren't sure if we are sending bad values in the code, or if we have hardware or wiring issues. [Note: the robot ran fine using robot drive code with one joystick in arcade mode, so we're stumped.] Any help would be greatly appreciated. |
Re: Mec wheel help
Quote:
|
Re: Mec wheel help
Quote:
That your motors move before you tell them to is worrisome. I would suspect a wiring issue, except that you say it worked with Arcade Drive. |
Re: Mec wheel help
We are having the same issues.
|
Re: Mec wheel help
Sounds like:
Bad joysticks or Joysticks being moved before plugged in (When you plug in a joystick, most axes home themselves upon power on). |
Re: Mec wheel help
Hi there, just in case:
What sort of motor driver setup are you using? Is it closed loop? (If so, did you change anything about that too?) As well, could it be that something besides your drive code is trying to set your motor controllers? Finally, if you put the robot into any other enabled mode than Tele-operated, does this behavior show up? ( I suppose you would want to use Test mode for this ) |
| All times are GMT -5. The time now is 12:49. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi