|
Re: Pre-Load Arrays in EasyC, Possible?
Yes, your right, hadn't had my mountain dew yet when I was trying to "make-up" a question to post.
Let me rephrase it:
We have tried formatting the value field:
0,0,0
{0,0,0}
(0,0,0)
The only thing that seems to work is leave it blank, then in code somewhere we have to do this:
power[0] = value0
power[1] = value1
power[2] = value2
***Thanks Mark***
Either way...stilll doesn't seem to work.....
Get an ERROR:1 when we compile it.
EDIT....well that was funny! It seems to work now.
Just now tried this format:
{0,0,0} with a power[3]
And it seems to work now. Geez..I need to go lay down....Maybe it's our programming computer at the robot field....works fine on my laptop.
BTY: As awesome as the HELP FILE is in EasyC, this is not documented how to do this in the help file. FYI....
-
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here: Repository
Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
Last edited by Chris_Elston : 13-02-2006 at 12:04.
|