Thread: Live C++ help
View Single Post
  #4   Spotlight this post!  
Unread 02-07-2012, 08:04 AM
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Live C++ help

Try the following:
Code:
ADXL345_I2C *accelerometer;
...
accelerometer = new ADXL345_I2C (1,ADXL345_I2C::kRange_2G);
...
std::cout<<accelerometer->GetAcceleration(ADXL345_I2C::kAxis_X);
__________________
Reply With Quote