Go to Post Robotics is better than Football. Robotics > Football !!! - Arkorobotics [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 11 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #23   Spotlight this post!  
Unread 04-02-2010, 18:57
urg8rb8 urg8rb8 is offline
Registered User
FRC #0108
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Plantation
Posts: 23
urg8rb8 is an unknown quantity at this point
Re: 2010 Accelerometer I2C Object/Class

We tested out the code for the I2C Accelerometer and we seem to be having some issues. We are doing the following:

Code:
ADXL345DigitalAccelerometer accelerometer;

accelerometer = ADXL345DigitalAccelerometer(4);

accelerometer.initialize();
accelerometer.getZAxis();
For some reason, the code is getting blocked in the initialize() call and never returns out of it. We have the accelerometer plugged into the correct header on the sidecar and we do not have the "blob of solder" on the jumper so we are using the default address that is coded in the class object. What could be the problem?

Any help would be appreciated!
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with 2010 Accelerometer & I2C wt200999 C/C++ 33 08-02-2010 15:16
2010 accelerometer chsr C/C++ 1 22-01-2010 02:28
2010 Accelerometer Documentation? JDM Sensors 13 18-01-2010 12:42
Where to find a Gyro and Accelerometer Sensor Board for 2010 FRC? xSpongeX Sensors 4 18-01-2010 06:17
Accelerometer class - isn't reading zero at rest? oddjob C/C++ 3 02-02-2009 17:11


All times are GMT -5. The time now is 12:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi