View Single Post
  #4   Spotlight this post!  
Unread 05-02-2005, 16:57
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,801
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Interface with breaker

Quote:
Originally Posted by doyler
Is it in the DDT version? What does it look like if it is because I can't really tell anything that might be it
oops, my fault of course.

The breaker code is in Process_Data_From_Master_uP() of both the 2.2 and 2.4 versions of the default code.

Code:
/* Example code to check if a breaker was ever tripped. */
if (aBreakerWasTripped)
{
  for (i=1;i<29;i++)
  {
	if (Breaker_Tripped(i))
	  User_Byte1 = i; 
	  /* Update the last breaker tripped on User_Byte1 (to demonstrate the use of a user byte) Normally, you do something else if a breaker got tripped (ex: limit a PWM output) */
  }
}

__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-02-2005 at 17:01.