|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
|||
|
|||
|
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) |
|
#17
|
|||
|
|||
|
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?
|
|
#18
|
|||
|
|||
|
Re: Help with 2010 Accelerometer & I2C
Quote:
If you fix the I2C library it should start working for you. |
|
#19
|
|||
|
|||
|
Re: Help with 2010 Accelerometer & I2C
How would I patch wpilib? I could not find anything useful (besides the description of the bug).
|
|
#20
|
|||
|
|||
|
Re: Help with 2010 Accelerometer & I2C
Quote:
-Joe |
|
#21
|
|||
|
|||
|
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...
|
|
#22
|
|||
|
|||
|
Re: Help with 2010 Accelerometer & I2C
I'm not sure... I have no control over release schedules.
Quote:
-Joe |
|
#23
|
|||
|
|||
|
Re: Help with 2010 Accelerometer & I2C
Quote:
I get the "no such file or directory" error. |
|
#24
|
|||
|
|||
|
Re: Help with 2010 Accelerometer & I2C
Quote:
What file or directory exactly does it fail on? -Joe |
|
#25
|
|||
|
|||
|
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 |
|
#26
|
|||
|
|||
|
Re: Help with 2010 Accelerometer & I2C
The script is expecting the library source to be in "c:\WindRiver\workspace\WPILib" and if it's not there you will get this behavior.
|
|
#27
|
|||
|
|||
|
Re: Help with 2010 Accelerometer & I2C
Thank you sir. You have been most helpful!
|
|
#28
|
|||
|
|||
|
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 ![]() |
|
#29
|
|||
|
|||
|
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. Last edited by tdidi : 03-02-2010 at 20:02. |
|
#30
|
|||
|
|||
|
Re: Help with 2010 Accelerometer & I2C
Quote:
-Joe |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2010 Accelerometer Documentation? | JDM | Sensors | 13 | 18-01-2010 12:42 |
| Accelerometer Help? | elbuo | Programming | 16 | 19-01-2009 13:01 |
| accelerometer help!! | wildcats | Electrical | 2 | 18-01-2009 15:51 |
| Accelerometer Help! | Questions4mQ202 | Electrical | 4 | 15-01-2009 19:44 |
| Accelerometer help | Red Mage | Programming | 3 | 30-01-2008 18:49 |