Go to Post So your gearbox failed, and your first course of action was to post about it CD? This is an interesting failure recovery plan. :) - JVN [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-03-2003, 23:07
K. Skontrianos's Avatar
K. Skontrianos K. Skontrianos is offline
Registered User
FRC #0102 (Dexterous Gearheads)
Team Role: Alumni
 
Join Date: Nov 2001
Rookie Year: 2000
Location: Somerville, NJ
Posts: 100
K. Skontrianos is an unknown quantity at this point
Solution

You can't test your controls during autonomous control, because they default to 0/127. Instead you must test any autonomous selection switch in your non-autonomous code and then save this value in a "dummy variable" for the autonomous period.

ie....
if automode =0
if switch = 0
dummyvar = 0
else
dummyvar = 1



if automode = 1
if dummyvar = 0
'Box mode
if dummyvar = 1
'Ramp Mode

Something like this should solve the problem
__________________
www.team102.com
2000 National Finalists
2003 J&J Mid-Atlantic Regional Winners
2003 BattleCry Best Autonomous

Last edited by K. Skontrianos : 07-03-2003 at 23:11.
Closed Thread


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
Programming Autonomous mode Jared Stofflett Programming 3 11-11-2003 09:32
Autonomous mode AntmanIV General Forum 1 17-02-2003 13:30
autonomous mode timer Don Programming 6 09-02-2003 22:16
autonomous mode Stephanie Programming 2 25-01-2003 19:57
autonomous mode? bigwalt Technical Discussion 1 21-01-2003 01:14


All times are GMT -5. The time now is 07:42.

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