View Single Post
  #3   Spotlight this post!  
Unread 13-02-2006, 11:58
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 750
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
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.