Go to Post Reputation is a good thing to have. - adammiller3122 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-02-2010, 23:24
helenajoy helenajoy is offline
Registered User
FRC #2437
 
Join Date: Nov 2008
Location: Hawaii
Posts: 31
helenajoy is an unknown quantity at this point
Exclamation 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?
Reply With Quote
  #2   Spotlight this post!  
Unread 22-02-2010, 01:50
Ziaholic's Avatar
Ziaholic Ziaholic is offline
Elec/SW Mentor
AKA: Marc
FRC #1164 (Project NEO)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2002
Location: Las Cruces, NM
Posts: 194
Ziaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the roughZiaholic is a jewel in the rough
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 ...
__________________
----
There are 10 types of people. Those who understand binary, and those that do not.
Team #1164 - Project NEO Robotics
Reply With Quote
  #3   Spotlight this post!  
Unread 22-02-2010, 19:30
helenajoy helenajoy is offline
Registered User
FRC #2437
 
Join Date: Nov 2008
Location: Hawaii
Posts: 31
helenajoy is an unknown quantity at this point
Smile 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! (:
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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