View Single Post
  #6   Spotlight this post!  
Unread 12-05-2012, 17:27
rbmj rbmj is offline
Registered User
FRC #0612 (Chantilly Robotics)
Team Role: Alumni
 
Join Date: Apr 2011
Rookie Year: 2011
Location: DC Area/Fairfax County
Posts: 192
rbmj is a jewel in the roughrbmj is a jewel in the roughrbmj is a jewel in the rough
Re: KOP Accelerometer with Arduino

Use the source Luke. If you check WPILib, its just an read through the analog:

Code:
float Accelerometer::GetAcceleration()
{
    return (m_analogChannel->GetAverageVoltage() - m_zeroGVoltage) / m_voltsPerG;
}
Reply With Quote