View Single Post
  #14   Spotlight this post!  
Unread 31-03-2008, 13:02
adamdb adamdb is offline
Registered User
#1583
 
Join Date: Feb 2005
Location: Parker, CO
Posts: 64
adamdb has a spectacular aura aboutadamdb has a spectacular aura aboutadamdb has a spectacular aura about
Re: Weird hybrid mode in competition

I am glad you posted this as we also had a strange occurrence. We were also using EasyC Pro. After experiencing several wierd issues, we removed ALL of our autonomous code including all code in the Autonomous() function. 5 or 6 seconds into the autonomous period we were also experiencing relays energizing on their own. Further debugging showed that it was calling an init routine we had in our Operator Control code that was causing the relays to power up. I would have expected that with the Autonomous() function being empty that nothing at all would happen during the autonomous period. The addition of an endless loop in the Autonomous() function:

while(1);

resolved the issue, but certainly doesn't explain why EasyC was calling a random function when nothing should have been happening.
__________________
Adam Bryant
Programming Mentor
Team 1583
Ridge View Academy Rambotics