Go to Post The gates were removed for this game so that it would be easier to get the Zamboni in and out when the field was resurfaced after each round. - dlavery [more]
Home
Go Back   Chief Delphi > Old Forum Archives > 2001
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 23-06-2002, 23:38
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
help to rookie teams

Posted by Stephen at 1/25/2001 1:57 PM EST


Other on team #122, NASA Knights, from Grafton High School (Robotics team is at NHGS) and NASA.



This post is meant as a programming tip for rookie teams. For the past few years (well, this is what I've been told, this is actually my first year at FIRST) my team has used a button on the robot to reverse the controls; in escence switching the motors you send the certain joystick controls to. This helps to stop the disorientation you get when the robot is turned around and you have to mentally swap everything around. Well, now to the point: as you now, you are only permited 26 varibles in pbasic, and most teams (even mine last year) use a temp variable to swap:
- temp = a
- a = b
- b = temp
but, this wastes a varible. Here is very simple way to swap the varible using bitwise operations:
- a = a ^ b
- b = a ^ b
- a = a ^ b
If you want help understanding the logic, or have problems implementing this code - send me an e-mail at Steven3554@yahoo.com


__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
 


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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How are all the rookie teams doing this year? WakeZero General Forum 20 21-02-2009 12:02
I tip my hat to all rookie teams archiver 2001 2 24-06-2002 02:25
Hits, Misses, & Suggestions -- long message archiver 2000 17 23-06-2002 23:36
The Case For 'Regionalizing' teams at the Nationals. archiver 2000 33 23-06-2002 23:35
How do we view more teams? archiver 2000 0 23-06-2002 23:11


All times are GMT -5. The time now is 00:10.

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