Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Python: Robot's turning is opposite? (http://www.chiefdelphi.com/forums/showthread.php?t=134702)

team-4480 16-02-2015 15:08

Python: Robot's turning is opposite?
 
Hi! We are almost finished with our robot but I have one annoying issue to fix. The robot turns the opposite way then what it should. Forward and backward is fine but turning isn't. I am using the "robotdrive.arcadedrive(joystick, True)". Any ideas would be appreciated!

Alan Anderson 16-02-2015 15:27

Re: Python: Robot's turning is opposite?
 
If front/back are correct but turns are reversed, it is likely that you have two separate problems that are almost but not quite cancelling each other out. First, you have your left and right motors swapped. Second, you have the wrong motors inverted.

I am not familiar with how to define drive motors in Python, so I can't give you specific instructions for how to fix them in code. If you'd rather swap the wiring, you can do that instead. Just don't change both the hardware and the software.

team-4480 16-02-2015 15:33

Re: Python: Robot's turning is opposite?
 
Quote:

Originally Posted by Alan Anderson (Post 1445176)
If front/back are correct but turns are reversed, it is likely that you have two separate problems that are almost but not quite cancelling each other out. First, you have your left and right motors swapped. Second, you have the wrong motors inverted.

I am not familiar with how to define drive motors in Python, so I can't give you specific instructions for how to fix them in code. If you'd rather swap the wiring, you can do that instead. Just don't change both the hardware and the software.

Thanks! I should have thought about swapping the motors. I and the drivers appreciate it!

Christopher149 16-02-2015 16:16

Re: Python: Robot's turning is opposite?
 
Or, if I'm interpreting your description correctly, perhaps the right and left joysticks are flipped on the driver station. Edit: just make sure to try only one of these suggestions at a time, because each "fix" will probably negate the other.

Alan Anderson 16-02-2015 17:08

Re: Python: Robot's turning is opposite?
 
Quote:

Originally Posted by Christopher149 (Post 1445211)
...perhaps the right and left joysticks are flipped...

Arcade drive doesn't use right and left joysticks. They're using the variety of arcadedrive() that takes a single joystick as input.

TimTheGreat 16-02-2015 17:26

Re: Python: Robot's turning is opposite?
 
Pastebin?

team-4480 16-02-2015 21:25

Re: Python: Robot's turning is opposite?
 
Quote:

Originally Posted by TimTheGreat (Post 1445243)
Pastebin?

Yeah I figured out it was just the motors needing to be flipped around. Thanks to all the answers!


All times are GMT -5. The time now is 01:42.

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