View Single Post
  #6   Spotlight this post!  
Unread 05-02-2008, 16:09
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Help with Kevin Watson's 2008 code

Quote:
Originally Posted by 2526 View Post
The project did build but as soon as I added pwm01 = p1_y; It would not build as shown below.

Code:
	pwm01 = p1_y;
	// example code to test your gyro and encoder(s)

	long Encoder_Count;

	static unsigned int i = 0;
	static unsigned int j = 0;
	int temp_gyro_rate;
	long temp_gyro_angle;
	int temp_gyro_bias;
In C, you have to put your code after all variable declarations. If you move pwm01 = p1_y; to the end of this block, it will compile.