Quote:
Originally Posted by Joe Ross
You could also break those declarations into separate files.
|
That would be difficult, but not impossible. We use all three arrays in our Autonomous navigation code. It would be more of an inconvenience than anything else. I believe I found the reason we were having difficulty that made me try this approach. I had initialized an array as a
LONG, but tried to dump
ints into it without any indication they were
ints. (In fact, I don't even know the correct way to do this, but I know it exists.

), I then called the data out without typecasting the values as
ints. What I got was garbage. I re-declared the array as an
int array, that should fix the original issue.
Quote:
Originally Posted by Orborde
If your arrays are tables of constants, you can put them into the much-less-limited ROM by:
Code:
rom const int name [11][5];
|
I thought of this, but I am not comfortable enough in it's use to do this without building and loading it to test. (The bot is shipped now.)
Thanks to both for your input. These are both techniques I/we should master in the off season. Thanks for adding to our list of things to learn!!!