|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|
#2
|
|||
|
|||
|
Re: Accelerometer
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.
|
|
#3
|
||||
|
||||
|
Re: Accelerometer
for us,
AnalogChannel ac(1); ac.GetValue(); |
|
#4
|
|||
|
|||
|
Re: Accelerometer
How did you intialize the "ac" variable? Is that all you have to do?
|
|
#5
|
||||
|
||||
|
Re: Accelerometer
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 |
|
#6
|
|||
|
|||
|
Re: Accelerometer
okay cool thanks a lot
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Accelerometer Code | Smoking_Gun | Programming | 6 | 24-01-2007 13:57 |
| Accelerometer integration | Leav | Programming | 4 | 27-01-2006 11:56 |
| Accelerometer | railerobotics | Programming | 1 | 27-01-2006 02:59 |
| Accelerometer | Tom McCurdy | Programming | 5 | 30-01-2005 23:45 |
| Accelerometer | buss | Electrical | 1 | 09-01-2005 00:10 |