Go to Post 10:56 p.m. EDT, July 20, 1969. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 23-01-2013, 17:30
ZeroCoder ZeroCoder is offline
Registered User
FRC #2344
 
Join Date: Jan 2013
Location: Yonkers, NY
Posts: 2
ZeroCoder is an unknown quantity at this point
Silly question about controlling motors

So I'm using the RobotDrive class and two Jaguar motor controllers to control out robot. In tank drive mode, I'm periodically calling RobotDrive.tankDrive(leftJoystick, rightJoystick).

My problem is that the direction of the motors is inverted with respect to the joystick axis. In other words, if I push the joysticks forward, the robot goes backwards, and vise versa. I know I can just invert the motors in the code, but my OCDness is telling me that it should be working correctly by default.

The left joystick is properly corresponding to the left motor controller and the same goes for the right side. Basically, if I push the left stick forward, I get a negative voltage reading on the output of the left jaguar. If I push the left stick backwards, I get a positive voltage reading on the jaguar output.

Any ideas what could be causing this?
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi