|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Re: SmartDashboard not connecting to robot.
Might as well highjack this instead of making a new thread for a tiny question and its related to SmartDashboard.
If I have a display() method that just puts values on the Dashboard, ex: Code:
public void display(){
SmartDashboard.putNumber("FrontLeft PWM:", Robot.eboard.frontLeftSlot);
SmartDashboard.putNumber("BackLeft PWM:", Robot.eboard.backLeftSlot);
SmartDashboard.putNumber("FrontRight PWM:", Robot.eboard.frontRightSlot);
SmartDashboard.putNumber("BackRight PWM:", Robot.eboard.backLeftSlot);
}
ps i understand the pwm slots sure well aren't going to change its just an example of a display method that is only temporary... |
|
#17
|
|||
|
|||
|
Re: SmartDashboard not connecting to robot.
Based on your code there, where you're putting a number, you'll need to call that regularly. If you put smarter things to the dashboard such as Commands, they update their status on their own.
|
|
#18
|
||||
|
||||
|
Re: SmartDashboard not connecting to robot.
what would an example of a command be?
if i put SmartDashboard.putNumber(encoder1.get()); will it auto update or is that a command? |
|
#19
|
|||
|
|||
|
Re: SmartDashboard not connecting to robot.
Commands are part of command-based programming, which is one of the WPILib-supported programming paradigms. See in the ScreenSteps here: http://wpilib.screenstepslive.com/s/...ed-programming.
|
|
#20
|
||||
|
||||
|
Re: SmartDashboard not connecting to robot.
Oh, right. I always forget about Command based
![]() thanks for your help ^^ |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|