View Single Post
  #3   Spotlight this post!  
Unread 20-02-2007, 08:17
Ianuser Ianuser is offline
Registered User
FRC #0570
 
Join Date: Feb 2007
Location: new york
Posts: 64
Ianuser is an unknown quantity at this point
Re: Gear Tooh phase B? help?

So quite literally:

Code:
void Encoder_2_Int_Handler1(void)
{
	// Encoder 2's phase a signal just transitioned from zero to one, causing 
	// this interrupt service routine to be called. We know that the encoder 
	// just rotated one count or "tick" so now check the logical state of the 
	// phase b signal to determine which way the the encoder shaft rotated.

	Encoder_22_Count += ENCODER_2_TICK_DELTA;
}
#endif

#ifdef ENABLE_ENCODER_3

?

Also, this line of code wasn't compiling..it came up with this problem:

Code:
C:\USFIRST\frc_camera_s_21\CAMERA CODE\encoder.c:130:Error [1205] unknown member 'INT3IP' in '__tag_223'
C:\USFIRST\frc_camera_s_21\CAMERA CODE\encoder.c:130:Error [1131] type mismatch in assignment
for this line of code:
Code:
// interrupt 2 is low priority
	INTCON2bits.INT3IP = 0;
So I just commented it out. Do I still need it? I cant find anywhere in the code where it could be changed or anything.