Hello guys,
I am working on a micromouse software and a strange problem appeared.
There is an array declared as
int Wall_North [82];
During the simulation unexpected values appeared in this array, like 73, but only 0s and 1s shall be in the array. Note that the array is initialized to 0. Also, the micromouse does unexpected movements.
After adding another array Test, which is not used in the algorithm-just shifts the memory locations of the Wall_North array, before the Wall_North it works fine.
int Test [82];
int Wall_North [82];
Any ideas what can be the problem?
I am working on a micromouse software and a strange problem appeared.
There is an array declared as
int Wall_North [82];
During the simulation unexpected values appeared in this array, like 73, but only 0s and 1s shall be in the array. Note that the array is initialized to 0. Also, the micromouse does unexpected movements.
After adding another array Test, which is not used in the algorithm-just shifts the memory locations of the Wall_North array, before the Wall_North it works fine.
int Test [82];
int Wall_North [82];
Any ideas what can be the problem?