|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: "Could not find ADXRS450 gyro on SPI port 0" Error - Java
Have you hooked up a probe to the clock and message lines to the spi gyro to make sure that valid data is being exchanged? If the RIO isn't sending data you may have a firmware issue. If data is being sent than either your not lighting the right chip select line or you have an issue with the gyro
|
|
#2
|
|||
|
|||
|
Re: "Could not find ADXRS450 gyro on SPI port 0" Error - Java
Hi mikets and Arhowk, thank you for your replies.
Mikets, under the hood, your code looks similar to our code. I downloaded it and ran it, and I get the same problem. This leads me to believe we have a hardware issue. But, the knowledge that other teams are using this successfully with Java is important, so thank you. Arhowk, no, we haven't done that. I think that's what our next step needs to be, but unfortunately due to resource constraints (in particular time), I'm not sure that we will in the imminent future. I was hoping this would just be a silly code issue. I think for now, we will be reverting to the old kit of parts gyro. If we have time to either test our SPI or test a different ADXRS450 sometime before the end of season, we'll try that. If not, perhaps after our season ends. Thanks again for the help! |
|
#3
|
||||
|
||||
|
Re: "Could not find ADXRS450 gyro on SPI port 0" Error - Java
We use the same gyro and it works fine. Here is the line that I used to call the gyro.
Code:
public static ADXRS450_Gyro gyro= new ADXRS450_Gyro(); |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|