Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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())
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())
def writePressure(self):
"""Puts the pressure on the SmartDashboard."""
wpilib.SmartDashboard.putNumber("Pressure", self.pressureSensor.getVoltage())
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())
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())
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())