View Single Post
  #1   Spotlight this post!  
Unread 09-01-2015, 20:57
jtrv's Avatar
jtrv jtrv is online now
github.com/jhtervay
AKA: Justin
FRC #2791 (Shaker Robotics)
Team Role: College Student
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Latham, NY
Posts: 148
jtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to alljtrv is a name known to all
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);
	}
Do I need to constantly call that method throughout teleopPeriodic()? Or do I only need to call it once during teleopInit()? In other words, do I have to update Dashboard manually, or will it update automatically as time goes on?

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...
__________________
2791 (2012-2017)
Reply With Quote