Ok, several things in this post:
-1. How many people would be interested in EduCAD?
-2. Those Dang Arrays!!!
1: I’m developing a Program I call “EduCAD”. No, It’s not an edubot design studio, but rather a program that allows you to draw out motion for autonomous movement, and generate the code for instant use. This program is going to be pretty cool to have your eduBot Write things with a marker.
Would you be interested in this program?
2: ARRAYSSSSSSSSS!!! Ack!
Ok, I’ve tried, and tried, and tried! But I just cant get a stinking array to work with MPLAB. What am I doing Wrong??? I’m using standard C syntax:
int X[2][3] = {
{3,2,1},
{3,2,1}
};
and so on. Bot the compiler doesn’t like my code. Is my array to large? It was an 82x3 array, then I split it into 2 41x3 arrays, but it still came up w/ the same problems on each one. What am I doing wrong?
I’m trying to find some sort of C18 programming guide, to see what form it likes arrays in. This also plays a role in EduCAD as well. In general, EduCAD will generate an array of Movement Data, and apply it to a general user_routines.c file for auto control. Nothing Fancy.
But I’m having trouble getting that silly array to work.
I also couldn’t get the switch command to work either.
What’s up???!
-EDIT-
Ok, I just got the Arrays working, sort of. You can’t have any variable names in the array, even if it is defined before the array. I can compensate for this in EduCAD, however, In my current program, I have all the data in and everything, but now I’m getting an ERROR - selection ‘i.user_routines.o’ cannot fit selection. What’s that mean? Am I using too much memory?
I have a const float [82][3] array. I’ll try shortening it. I thought we’d have plenty of memory to do this with. I don’t want to have to reprogram it out so it’s in program memory…again!
-EDIT-