| | Re: NQC 2.2 a1 available for public test James Pritchard
|
| | There is still a problem when nqc uses the first three global variables if you also want to use a counter. The current solution is to make the first int lines reflect the fact that they will be used as counters. #Define COUNTER_1 0 int count1 int (...) (25 years ago, 8-May-00, to lugnet.robotics.rcx.nqc)
|
| | |
| | | | Re: NQC 2.2 a1 available for public test James Pritchard
|
| | | | Working code using a counter. /* * lstop8.nqc - Line and Wall avoider * * Copyright (C) 2000 James Pritchard * * Date: 08-May 2000 * * * The contents of this file are subject to the Mozilla Public License * Version 1.0 (the "License"); you may not (...) (25 years ago, 8-May-00, to lugnet.robotics.rcx.nqc)
|
| | | | |
| | | | Re: NQC 2.2 a1 available for public test Dave Baum
|
| | | | (...) I completely missed the fact that counters were overlapped with global vars. I'll have to come up with a good mechanism for allocating these. I think the scout handles things differently where the counters are actually unique from variables. (...) (25 years ago, 8-May-00, to lugnet.robotics.rcx.nqc)
|
| | | | |