Go to Post That little voice in your head is not Ari telling you to keep going. It is your guardian angel telling you to stop! - Al Skierkiewicz [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Phase A and Phase B on encoders kiettyyyy Programming 11 12-04-2006 13:05
between phase scoring calculation question? psycho7 Rules/Strategy 2 08-01-2006 22:05
most important phase? Jeremy L Rules/Strategy 3 15-01-2003 15:21
Help Gear Ratios !!!!!!! Help sanddrag Technical Discussion 5 16-08-2002 15:09
1 or 2 phase switch archiver 2001 0 24-06-2002 00:48


All times are GMT -5. The time now is 06:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi