Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Directions During Autonomous (http://www.chiefdelphi.com/forums/showthread.php?t=83344)

helenajoy 21-02-2010 23:24

Directions During Autonomous
 
Earlier today, our team took our robot to our testing field.

To control our robot's direction during Autonomous, we were using the Drive - Motors vi. Generally, when we had two positive integers for the LeftSpeed and RightSpeed, the robot would move forward. And when we had two negative integers for the LeftSpeed and RightSpeed, the robot would move backwards.
Also, the Teleop would work as well. The joysticks being pushed forward would move the robot forward and the joysticks being pushed backwards would move the robot backwards.

Suddenly, it seemed that the directions during Autonomous changed. Now, having two positive integers as the RightSpeed and LeftSpeed make the robot go right. And the numbers that would make the robot turn right now make the robot go forward. However, the teleop still works. The robot moves forward when the joysticks are pushed forward and the robot moves backwards when the joysticks are pushed back.

Any ideas as to what may have happened?

Ziaholic 22-02-2010 01:50

Re: Directions During Autonomous
 
I had a similar problem until I realized that Joystick UP = -1 ... not 1

After I figured that out, I threw some NEGATES in a few places and it all started working again.

You can pick either way, but I choose to negate the Y-axis as soon as I read it out of the joystick ... it just makes sense that Joystick UP should be +1. Your other option is to put your negates into your Auton code.

If that's not it, then maybe somebody's been messing around in your Begin VI and flipped the INVERTED boolean ...

helenajoy 22-02-2010 19:30

Re: Directions During Autonomous
 
Ah! Yes, that was part of the problem.

Also, I seemed to have forgotten to link the error in and error outs, so that messed with my code a fair bet.

'Tis all good now! Thanks! (:


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

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