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