View Single Post
  #28   Spotlight this post!  
Unread 15-02-2003, 12:57
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Quote:
Originally posted by guzugi
lol, THAT would fix it! thankyou!

by the way, what does the '&' operator do then?
It performs an AND on each bit. Likewise, the | performs an OR and ~ performs a NOT. Examples:
Code:
  110111001 
& 010101011
----------------
  010101001


  110111001 
| 010101011
----------------
  110111011


~110111001 
----------------
 001000110
You should always use the keywords OR, AND, and NOT when combining expressions (ie IF NOT (p1_y <137 AND p1_y>117)) and only use the bitwise versions when you really know what you are doing.


Any other RoboEmu comments from anyone? I'm off to robotics in a few minutes, but should still be able to work on stuff later tonight.

--Rob
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php