Quote:
Originally Posted by ElliotCourant
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.