Go to Post The kids will still be inspired, just keep FIRST competitive. - MikeDubreuil [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-21-2010, 09:19 PM
chsr chsr is offline
Registered User
FRC #2473
 
Join Date: Jan 2010
Location: Cupertino
Posts: 1
chsr is an unknown quantity at this point
2010 accelerometer

Does anyone have any sample code or any idea in general on how to get the accelerometer working?

My code is basically:
Accelerometer *accel;
accel = new Accelerometer(4);
cout << accel->GetAcceleration() << endl;


however, each time we are getting -2.057095... whether or not the accelerometer is plugged in or not...

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-22-2010, 02:28 AM
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: 2010 accelerometer

Try looking here: http://decibel.ni.com/content/thread/5634
Reply With Quote
Reply


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 02-08-2010 03:16 PM
2010 Accelerometer Documentation? JDM Sensors 13 01-18-2010 12:42 PM
Where to find a Gyro and Accelerometer Sensor Board for 2010 FRC? xSpongeX Sensors 4 01-18-2010 06:17 AM
Accelerometer dnrobotics11 C/C++ 5 02-06-2009 06:27 PM
Accelerometer Tom McCurdy Programming 5 01-30-2005 11:45 PM


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

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