View Single Post
  #23   Spotlight this post!  
Unread 20-01-2015, 11:27
tech2077 tech2077 is offline
Registered User
AKA: Matthew Skolaut
FRC #3847 (Spectrum 3847)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Houston
Posts: 21
tech2077 is an unknown quantity at this point
Re: LIDAR Sensor has arrived!

Quote:
Originally Posted by Merfoo View Post
How would one program the LIDAR Sensor for use via DIO in Java?
Two possible methods:
  1. Use a low pass filter and read through analog (less programming but requires a resistor and capacitor connected to the output, or
  2. Directly measure the pwm pulse and convert the timing to distance (more programming, but the sensor just drops in and works)

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.