|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
||||||
|
||||||
|
Re: LIDAR Sensor has arrived!
Can you try in C++ as well (either the accelerometer or the LIDAR). Java and C++ share a lot of code, and that might help pinpoint where the issue is.
|
|
#2
|
|||
|
|||
|
Re: LIDAR Sensor has arrived!
Verified to have the same error.
|
|
#3
|
||||
|
||||
|
Re: LIDAR Sensor has arrived!
We picked up one of these... it seems very sensitive to glossy/reflective surfaces. Much more so than the lidar system we yanked from a Neato vacuum robot. Not sure what others are seeing. We haven't dived into the sample code yet beyond running it.
|
|
#4
|
||||
|
||||
|
Re: LIDAR Sensor has arrived!
We have 2 of these and played with them today with LabVIEW. We have been unable to get them to work with the native I2C port on the roborio. However, we have them working just fine on the MXP expansion I2C with identical code. We've pinned them out, swapped the lasers themselves, and still have zero luck with the native port.
The native port DOES know the sensor is connected. We received read and read/write errors stating that the device is busy. This is different that the 'resource not found' error we get when the device is not plugged into to power or not plugged into the I2C. On the MxP I2C port we are reading then writing in alternating 20 ms loops. We lowered the timing of these loops incrementally until we started getting errors. At 10 ms polling we receive all zeros, at 15 ms we receive data, so 20 ms is where we are (50 hz). We average 5 loops in a moving average filter and the data looks very good. I know we can improve this by doing the write then checking for the ready bit, but this worked just as well and gave us a resolution we're happy with. Plus after 6 hours of banging our head against the native port we were already pretty frustrated. We have noticed that when the sensor was aiming at the ceiling and our flourescent lights we got highly inaccurate results. |
|
#5
|
||||
|
||||
|
Re: LIDAR Sensor has arrived!
How would one program the LIDAR Sensor for use via DIO in Java?
|
|
#6
|
||||
|
||||
|
Re: LIDAR Sensor has arrived!
I don't know that you can. It's designed to work via PWM output or I2C. The I2C implementation should be pretty similar to the arduino example on their website. The PWM setup will likely just be reading analog input values but don't quote me on that.
|
|
#7
|
|||
|
|||
|
Re: LIDAR Sensor has arrived!
Two possible methods:
I plan on eventually writing up a pwm based class due to the problems teams have had with this sensor and the onboard i2c port. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|