|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Live C++ help
Quote:
|
|
#2
|
|||
|
|||
|
Re: Live C++ help
Alright, I'm going to try and use the gyro for what I need instead. I have no idea what up with the accelerometer
|
|
#3
|
||||
|
||||
|
Re: Live C++ help
Did you try what Bob649 suggested? I think we connected to the other set of pins, not the one you showed in your picture.
|
|
#4
|
|||
|
|||
|
Re: Live C++ help
yeah... nothing changed. I did change the port to 2 in the code.
|
|
#5
|
||||
|
||||
|
Re: Live C++ help
What do you mean by that? Are you saying you specified module number 2 when instantiating the ADXL345 class? If so, do you really have two Digital modules in your cRIO and what slots are they plugged into?
|
|
#6
|
|||
|
|||
|
Re: Live C++ help
Bold = change.
accelerometer = new ADXL345_I2C(2, ADXL345_I2C::kRange_2G); |
|
#7
|
|||
|
|||
|
Re: Live C++ help
I thought thats what you did to tell the crio which port the sensor was on (1= left sides, 2 = right side). How else would it know where it was?
|
|
#8
|
||||
|
||||
|
Re: Live C++ help
No, the left side and the right side set of pins are not modules. The '2' you specified is the "module number". That's the cRIO modules. I2C is a bus, you don't need to differentiate it.
|
|
#9
|
|||
|
|||
|
Re: Live C++ help
nope still nothing
|
|
#10
|
||||
|
||||
|
Re: Live C++ help
Hi, I have the following error on my driver station when I enable teleop:
ERROR: A timeout has been exceeded: RobotDrive...Output not updated often enough. ...in Check() in c:/Windriver/workspace/WPILib/MotorSafetyHelper.cpp at line 123 I have that error and it repeats continuously on the driver station. I am deploying SimpleRobot example code. Any solutions? |
|
#11
|
|||
|
|||
|
Re: Live C++ help
I dont know if you got this working but looking at your pictures you are plugged into the pins that they call multipurpose I/O and not the I2C port. They is the four pins closest to the NXT connector.
|
|
#12
|
|||
|
|||
|
Re: Live C++ help
Could You provide a picture? I'm not sure what your talking about
|
|
#13
|
||||
|
||||
|
Re: Live C++ help
By putting a 2 there, you are saying you have TWO digital modules which means you must have an 8-slot cRIO and the second digital module must be inserted in slot 6 of the 8-slot cRIO and your accelerometer is connected to the I2C of the digital side car that is connected to the digital module in slot 6. Is that really your configuration?
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|