|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
|||
|
|||
|
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;
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|