| | Re: Competitive MINDSTORMS: Now in a store near you! Brian Davis
| | | (...) I finally downloaded and read the bonus chapters as well, and (of course) got confused. I've only been using NQC for a little over a year, so it could be my inexperience, but I knew C for several years prior to using NQC, so I'm not a complete (...) (20 years ago, 22-Aug-04, to lugnet.robotics)
| | | | | | | | Re: Competitive MINDSTORMS: Now in a store near you! David Perdue
| | | | | (...) Yes, from what you say, both logical and bitwise AND would work. My book is only a guide, so although I use bitwise, you can feel free to use logical. (...) The trick is, there isn't code that stops the counter-rotating wheels or task Spin! (...) (20 years ago, 23-Aug-04, to lugnet.robotics)
| | | | | | | | | | | | Re: Competitive MINDSTORMS: Now in a store near you! Brian Davis
| | | | | (...) Given what you say in the boxed text, do you ever use logical AND in a program? (...) Well, here's the code in question. I've removed blank lines, but the spacing & punctuation is preserved: task Crash() { SetPriority(1); while(true) { (...) (20 years ago, 23-Aug-04, to lugnet.robotics)
| | | | | | | | | | | | Re: Competitive MINDSTORMS: Now in a store near you! David Perdue
| | | | | (...) Truthfully, I rarely use any type of AND, so I can't really say! :) (...) Excellent observation! I guess, when I was creating the code, I just decided to put that code in with the Crash task. You can however, place it elsewhere where it won't (...) (20 years ago, 23-Aug-04, to lugnet.robotics)
| | | | | | |