Recently our SmartDashboard is having issues. The data we request from the robot is not returning anything. We are able to write to the SmartDashboard, and the dashboard is connected to the robot. Any help would be appreciated.
What type of data are you guys requesting from the robot? Sounds like the SmartDashboard may not be the problem… maybe it’s whatever data you guys are requesting (sensor feedback, etc.)
We are Requesting the data from one lidar, and one ultrasonic. The types of data we are requesting is the voltage of the ultrasonic, which is then converted into a distance by using a calculation. For the lidar, we are requesting data through the lidar.read(), which should return bytes.
Sensors have nothing to do with SmartDashboard. You read those from the DIO/AIO ports.
Right, but in his case the SmartDashboard is connected to the robot and they are able to write to the SmartDashboard which I think eliminates that the SmartDashboard is the issue in this case…? Maybe it’s the sensors that are not properly sending values and that’s why the values aren’t changing…
If the sensors are not reading, some problems may be:
- Sensor is not wired correctly
- Sensor not connected to roborio correctly
- Sensor class not properly created
- Provided wrong port number to the sensor class
- Not using the sensor class correctly to read the value.
- Sensor is broken
Improper voltage to distance calculations may also cause that… you never know some simple math could be the problem.