Hello everyone,
We recently purchased a RobotOpen control unit to do some off-robot testing, and have run into some issues in programming it. I am attempting to print the battery voltage to the dashboard using the following:
Code:
void timedtasks() {
RODashboard.publish("Analog 0", analogRead(ANALOG0));
RODashboard.publish("Uptime Seconds", ROStatus.uptimeSeconds());
RODashboard.publish("Battery Power", ROStatus.batteryReading());
}
Everything else using RODashboard.publish works but the battery reading doesn't. Has anyone encountered this error or does anyone have working code to fix it? Thanks for any help.