![]() |
Re: Arcade Drive Troubles in Autonomous
Quote:
Quote:
-Tanner |
Re: Arcade Drive Troubles in Autonomous
Quote:
|
Re: Arcade Drive Troubles in Autonomous
Quote:
|
Re: Arcade Drive Troubles in Autonomous
Quote:
-Tanner |
Re: Arcade Drive Troubles in Autonomous
Haven't been able to get to the office to test on the robot. Worked overtime today.
Yeah... -Tanner |
Re: Arcade Drive Troubles in Autonomous
Tested autonomous with just the drivetrain movement (i.e. - drivetrain->ArcadeDrive(autonomousForwardPower, 0.0);, and it still turns.
Didn't have time to test anything else (I was on my lunch break), but I will this afternoon. We're doing nothing at work today so I should be able to get off early. -Tanner |
Re: Arcade Drive Troubles in Autonomous
Quote:
Try putting drivetrain->ArcadeDrive(0.5, 0.0); in TeleOp and see if it still turns there. If so, maybe "0.0" doesn't mean "straight ahead". Do a printf of the value you are feeding in when the 'bot is going straight ahead in TeleOp, and see if it is "0.0" or some other number. ~ |
Re: Arcade Drive Troubles in Autonomous
I think the arguments for RobotDrive::ArcadeDrive are backwards somehow. Cause when I do drivetrain->ArcadeDrive(0.0, autonomousForwardPower); the robot goes forward, but when I do drivetrain->ArcadeDrive(autonomousForwardPower, 0.0); the robot turns left.
So, I checked the joystick numbers and the inversion of the drivetrain motors - they were totally wacky. The joysticks for the ArcadeDrive function were backwards and the inversion was programmed in that format, hence the robot worked, but everything was backward. Heh. Autonomous drives in the right direction now (or rather it turns in the right direction...). All is well. What did we learn? Never program the drivetrain with joysticks first and then do the inversions. Figure out what those values are, determine what they should be (positive or negative) or use magic numbers (like 1 and 0), then figure out the inversions. Glad that is figured out. Now to see if it still crashes... Thanks all! -Tanner Edit: And it doesn't crash with the updates, yay! |
| All times are GMT -5. The time now is 14:25. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi