Subject:
|
Re: Error in program
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Thu, 1 Feb 2001 13:24:02 GMT
|
Reply-To:
|
ash@jadzia-dax.de&SayNoToSpam&
|
Viewed:
|
2211 times
|
| |
| |
Juergen Stuber wrote:
> Your array is too small, it runs from 0 to 6.
Already got that answer, but thanks.
> Maybe you should also put a
>
> CounterLength = 0;
>
> before the first until.
Done with initialization (int CounterLength=0;), isn't it? Please
correct me if I am wrong.
> until(SENSOR_2 == 1);
>
> makes it wait for the sensor being pressed.
> Also, as a matter of style, I'd rather use
>
> While(CounterLength < 8){
>
> or even better a For loop than
>
> Until(CounterLength == 8){
Yes, you are right. But it didn't occur to me the time I wrote it.
> Jürgen
--
Bye: Andi S.
|
|
Message is in Reply To:
| | Re: Error in program
|
| (...) Your array is too small, it runs from 0 to 6. Maybe you should also put a CounterLength = 0; before the first until. until(SENSOR_2 == 1); makes it wait for the sensor being pressed. Also, as a matter of style, I'd rather use (...) (24 years ago, 1-Feb-01, to lugnet.robotics.rcx.nqc)
|
5 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|