Thread: Accelerometer
View Single Post
  #4   Spotlight this post!  
Unread 01-02-2011, 14:42
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Accelerometer

Quote:
Originally Posted by ElliotCourant View Post
So I'm trying to implement the accelerometer, and i get several errors.

Code:
RobotDemo(void):
		myRobot(1, 2, 3, 4),	// these must be initialized in the same order
		leftstick(1),		// as they are declared above.
		rightstick(2),    	// as they are declared above.
		gyro(1,1),
		acc(I2C)
{
and it gives me this

Code:
C:/WindRiver/workspace/Final/MyRobot.cpp:34: error: expected primary-expression before ')' token
How do I implement the accelerometer?
Which line is 34? What is I2C? A constant? A macro? Full source code would be helpful.
Reply With Quote