![]() |
Re: Help with 2010 Accelerometer & I2C
For some reason I keep receiving 0.0 from GetAcceleration(); am I instantiating the accelerometer correctly?:
ADXL345_I2C(4, ADXL345::kRange_2G) (assuming the digital sidecar is connected to slot 4) |
Re: Help with 2010 Accelerometer & I2C
We attached an oscilloscope to the bus and noticed that the data returned from the slave accelerometer is 0 for all three transactions (x, y, z); could it be attributed to some sort of a power saving feature which is not disabled?
|
Re: Help with 2010 Accelerometer & I2C
Quote:
If you fix the I2C library it should start working for you. |
Re: Help with 2010 Accelerometer & I2C
How would I patch wpilib? I could not find anything useful (besides the description of the bug).
|
Re: Help with 2010 Accelerometer & I2C
Quote:
-Joe |
Re: Help with 2010 Accelerometer & I2C
Will this patch be in a team update soon? It's not good that teams already have gone this long with broken support for something in the KoP...
|
Re: Help with 2010 Accelerometer & I2C
Quote:
Quote:
-Joe |
Re: Help with 2010 Accelerometer & I2C
Quote:
I get the "no such file or directory" error. |
Re: Help with 2010 Accelerometer & I2C
Quote:
What file or directory exactly does it fail on? -Joe |
Re: Help with 2010 Accelerometer & I2C
ok, I made a new project in Windriver. I copied the entire WPILib and its files (most recent release) into that project, and made the change to the logical OR.
The build target is specified as "Windows-gnu-native-3.x-4.x-debug" (I'm assuming thats what you mean by building the debug version.) The error is that it can't find "WPILib.h" after I run the updateBuiltInLibrary.cmd |
Re: Help with 2010 Accelerometer & I2C
Quote:
|
Re: Help with 2010 Accelerometer & I2C
Thank you sir. You have been most helpful!
|
Re: Help with 2010 Accelerometer & I2C
Quote:
The updates could be optional (e.g., not an 'official mandatory' team update) until the season draws to a close to prevent teams freaking out over things that aren't affecting them until ship draws close. In any case, thanks a lot for your replies and the hard work you've been doing to make the lives of FIRST teams easier :) |
Re: Help with 2010 Accelerometer & I2C
Should the cRIO need to be re-imaged for the patched WPILib to take effect?
I find that I am still unable to write to the device. Extra details: I know I'm not writing to the device because after I write to PowerControl and DataFormat regAddress's, I read them, and get back nothing (0). I know I'm reading correctly because I can get the DeviceID just fine. I have patched the WPILib as previous posts have instructed, but I think there might be a missing last step or something obvious that I'm missing. |
Re: Help with 2010 Accelerometer & I2C
Quote:
-Joe |
| All times are GMT -5. The time now is 12:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi