Accelerometer

Okay I found the doxygen documentation for the accelerometer but it is very inspecific regarding the WindRiver code. Could anyone tell me all of the syntax and functions in WindRiver for the accelerometer? Thank you

The code given doesn’t seem to build in WindRiver. I just need to know what the main functions are to get the horizontal value from the accelerometer. Thanks a lot.

for us,
AnalogChannel ac(1);
ac.GetValue();

How did you intialize the “ac” variable? Is that all you have to do?

yes, to initialize a variable you can do this:
Type name(params);
RobotDrive myRobot(1,2);
myRobot.Drive(1,0):
or
Type* name = new Type(poarams);
RobotDrive* myRobot = new RobotDrive(1,2);
myRobot->Drive(1,0);
and in the destructor
delete myRobot;

I reccomend the first way

okay cool thanks a lot