![]() |
Displaying Data in the Driver Station Output
I have written a program that is supposed to take a value given by a potentiometer, and display it in the driver station output. I have tried using
"System.out.println();" however this does not output to the driver station. I then attempted to use "driverStat.println(DriverStationLCD.Line.kMai n6, startingColumn, "Potentiometer: " + POT.get());". This however does not output anything either. Any fiddling with the potentiometer will not display anything. Here is my full code: TF_PrintPot.java: Code:
/*Code:
/*----------------------------------------------------------------------------*/ |
Re: Displaying Data in the Driver Station Output
Just a question, are you using smart dashboard or something of that nature?
|
Re: Displaying Data in the Driver Station Output
Looking at the Javadoc for DriverStationLCD.Line, it says that DriverStationLCD.Line.kMain6 has been deprecated. Try using DriverStationLCD.Line.kUser1 instead.
|
Re: Displaying Data in the Driver Station Output
Quote:
|
Re: Displaying Data in the Driver Station Output
I don't see anything obviously wrong with your code, with the exception that there is no delay in your while loop in operatorControl. Are you enabling the robot on the driver station? Are you looking for the messages on the User Messages display on the operations tab of the driver station?
|
| All times are GMT -5. The time now is 11:00. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi