View Single Post
  #7   Spotlight this post!  
Unread 17-01-2006, 22:17
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: 751
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: Strange Problem, varible not subtracting?

Quote:
Originally Posted by BradAMiller
There might be better ways of doing this without global variables if you were hand coding in C, but this will solve the problem easily in EasyC.

Hope this helps.

Thanks again guys. I dunno how we got through last year. We must have used all globals and didn't know it. I don't remember this "rule" when programming in C. But now I will never forget and neither will my programmers. BTY, it works like a champ now using globals. Looks too messy to try and do with an array in EasyC, or even doing your own structures...It doesn't look like EasyC support structures, but I did see something in the help on Arrays, we need to read up on that...


Again, thanks a bunch.
__________________
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