Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Beginner mistake with drivetrain setup (http://www.chiefdelphi.com/forums/showthread.php?t=112695)

kenfox 03-02-2013 20:23

Beginner mistake with drivetrain setup
 
Late one night last week, we finally got our practice bot with a working drivetrain. I threw on a simple teleop drive command (we're using C++ with robot builder) using ArcadeDrive. It didn't drive correctly, so I thought the motors were wired backward from WPILib convention. After setting the left motors to inverted, ArcadeDrive worked great.

Later we started autonomous programming and nothing worked right.

It turns out that I originally had the magnitude + direction sticks switched for ArcadeDrive. The motors are wired correctly--WPILib convention must be that both left and right side motors are wired the same way.

Switching the sticks and removing the inverted motors made ArcadeDrive work properly and also all the other driving modes.

If any other beginners are scratching their heads over why the drivetrain doesn't do what it should, I hope this helps!


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

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