View Single Post
  #70   Spotlight this post!  
Unread 10-01-2005, 16:01
stephenthe1 stephenthe1 is offline
Registered User
#1008
 
Join Date: Dec 2004
Location: Ohio
Posts: 113
stephenthe1 is on a distinguished road
Re: What do you think about how easy theyre making programming?

we're having trouble with Kevin W's code. we have an encoder hooked up to digital (interrupt) 1 (left encoder). this encoder is actually working on an arm, so for now we're not bothering with the wheels. here is the code in user_routines_fast. everything else is configured properly. the only thing is that our encoder's "b" phase isn't wired yet. will this mess it up? here's the code, I'm interested if this will even work as I'm somewhat new to this stuff.
Code:
pwm14 = p1_y;
	pwm16 = p2_y;
	if (Get_Left_Encoder_Count() >= 12)
	{
		pwm02 = 127;
	}
	else
	{
	pwm02 = p3_y;
	}