Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Drive motors spin wrong way (http://www.chiefdelphi.com/forums/showthread.php?t=110418)

Spencer Gomez 04-01-2013 23:54

Drive motors spin wrong way
 
We were using a basic simple template code to deploy to an old bot for practice a while ago, but when we tried to drive the robot using our joystick the bot span in a circle when you pushed the joystick forward. However, if you pushed the joystick sideways, then the bot would drive forward. I we tired fixing this by code but couldn't find the culprit. we ended up switching a jaguar hook-up in order to fix it and that seemed to work. I was wondering how to code to switch the direction of drive motors through jaguars.

nathan_hui 05-01-2013 02:16

Re: Drive motors spin wrong way
 
I believe your culprit is that the axis on the joystick were switched (in the code). If your joystick is sideways, pushing the stick to the side would be "forward" and pushing the stick forward would be "spin this side". If you flip the jag, I think you'll find left and right backwards.

Alan Anderson 05-01-2013 09:24

Re: Drive motors spin wrong way
 
I think you're looking for the SetInvertedMotor() method.


All times are GMT -5. The time now is 18:23.

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