View Single Post
  #1   Spotlight this post!  
Unread 25-01-2014, 20:12
tgross35 tgross35 is offline
Registered User
FRC #4810 (I Am Robot)
Team Role: Electrical
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Michigan
Posts: 23
tgross35 is an unknown quantity at this point
RobotOpen control system issues

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.
Reply With Quote