Squirrels have fuzzy tails.
0 Members and 1 Guest are viewing this topic.
I think you can declare a matrice of undetermined size and border it iterativelly:you can initilize a 1x1 matrice (a[1][1]="give value/initilize") and then, when ever you need you can choose by border it with 1 column or one row or both...
int myarray[100];int *p = NULL;/* simulate a 2 x 50 matrix */// access first 50 bytesp = myarray[0]; // like saying n[0][0]*p = 100;p = myarray[1]; // like saying n[0][1]*p = 101;p = myarray[48]; // like saying n[0][48]*p = 148;// access second 50 bytesp = myarray[50]; // like saying n[1][0]*p = 100;p = myarray[51]; // like saying n[1][1]*p = 101;
I guess it might be easier to just define a map large enough to fill the rest of my unused memory instead . . .
So the reason I asked is that Im doing robot mapping in an unknown area and just wanted my map to get bigger only when it needed to.I guess it might be easier to just define a map large enough to fill the rest of my unused memory instead . . .
Depending on the floor you can use a small low friction caster wheel with an encoder
....gumstix...