|
Re: Maxbotix not working well with RoboRIO?
The RoboRIO has a 12-bit ADC, not a 10-bit ADC. The RoboRIO's ADC count value can range from 0 to 4095. You can right shift that value by 2 to get a value in the range from 0 to 1023.
Each count will relate to 5mm of range. So multiply that output by 5mm to get the correct distance.
The beam pattern of that ultrasonic sensor is wide. That means that anything near it's cone will cause a reflection. The floor or table counts.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian
Previous mentor and student from Team Fusion, FRC 364
|