|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
||||
|
||||
|
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 ... |
|
#3
|
|||
|
|||
|
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! (: |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Scoring During Autonomous Mode | KrakatoaCoo | Rules/Strategy | 7 | 15-01-2010 16:16 |
| No Tracking During Autonomous | jdejoannis | Programming | 4 | 10-02-2007 14:46 |
| Reading switches during Autonomous | TimeOut | Programming | 3 | 19-02-2006 16:23 |
| Collision avoidance during autonomous | Andrew Schuetze | Programming | 5 | 17-01-2006 13:24 |
| A Warning to Human Players During Autonomous | The Lucas | General Forum | 21 | 07-04-2005 02:29 |