How to use the wpilib.SmartDashboard.putNumber function in wpilib

To help you get started, we’ve selected a few wpilib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github robotpy / robotpy-wpilib / examples / examples / pacgoat / robot.py View on Github external
def log(self):
        self.pneumatics.writePressure()
        wpilib.SmartDashboard.putNumber("Pivot Pot Value", self.pivot.getAngle())
        wpilib.SmartDashboard.putNumber("Left Distance", self.drivetrain.getLeftEncoder().getDistance())
        wpilib.SmartDashboard.putNumber("Right Distance", self.drivetrain.getRightEncoder().getDistance())
github robotpy / robotpy-wpilib / examples / examples / pacgoat / robot.py View on Github external
def log(self):
        self.pneumatics.writePressure()
        wpilib.SmartDashboard.putNumber("Pivot Pot Value", self.pivot.getAngle())
        wpilib.SmartDashboard.putNumber("Left Distance", self.drivetrain.getLeftEncoder().getDistance())
        wpilib.SmartDashboard.putNumber("Right Distance", self.drivetrain.getRightEncoder().getDistance())
github robotpy / robotpy-wpilib / examples / examples / pacgoat / subsystems / pneumatics.py View on Github external
def writePressure(self):
        """Puts the pressure on the SmartDashboard."""
        wpilib.SmartDashboard.putNumber("Pressure", self.pressureSensor.getVoltage())
github robotpy / robotpy-wpilib / examples / examples / pacgoat / robot.py View on Github external
def log(self):
        self.pneumatics.writePressure()
        wpilib.SmartDashboard.putNumber("Pivot Pot Value", self.pivot.getAngle())
        wpilib.SmartDashboard.putNumber("Left Distance", self.drivetrain.getLeftEncoder().getDistance())
        wpilib.SmartDashboard.putNumber("Right Distance", self.drivetrain.getRightEncoder().getDistance())
github robotpy / robotpy-wpilib / examples / examples / GearsBot / subsystems / drivetrain.py View on Github external
def log(self):
        '''The log method puts interesting information to the SmartDashboard.'''
        wpilib.SmartDashboard.putNumber("Left Distance", self.left_encoder.getDistance())
        wpilib.SmartDashboard.putNumber("Right Distance", self.right_encoder.getDistance())
        wpilib.SmartDashboard.putNumber("Left Speed", self.left_encoder.getRate())
        wpilib.SmartDashboard.putNumber("Right Speed", self.right_encoder.getRate())
        wpilib.SmartDashboard.putNumber("Gyro", self.gyro.getAngle())
github robotpy / robotpy-wpilib / examples / examples / GearsBot / subsystems / drivetrain.py View on Github external
def log(self):
        '''The log method puts interesting information to the SmartDashboard.'''
        wpilib.SmartDashboard.putNumber("Left Distance", self.left_encoder.getDistance())
        wpilib.SmartDashboard.putNumber("Right Distance", self.right_encoder.getDistance())
        wpilib.SmartDashboard.putNumber("Left Speed", self.left_encoder.getRate())
        wpilib.SmartDashboard.putNumber("Right Speed", self.right_encoder.getRate())
        wpilib.SmartDashboard.putNumber("Gyro", self.gyro.getAngle())