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.