Class TeleopInterface

    • Field Summary

      Fields 
      Modifier and Type Field Description
      boolean Default
      If this is the defualt Teleop Program
      java.lang.String displayName
      This is what will show up in the smartDashboard
      edu.wpi.first.wpilibj.Timer elapsedTime
      Used to get the elapsed time
      protected Gamepad1 gamepad1
      Gamepad1 device
      protected Gamepad2 gamepad2
      Gamepad2 device
      java.lang.String id
      This is a unique identifier used to execute programs
      protected RobotHardware robot
      Robot Motor Controller
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void teleopDisable()
      call this function once to run teleop disable code.
      void teleopInit()
      call this function once to run teleop init code.
      void teleopPeriodic()
      call this function repeatedly to run teleop periodic code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • gamepad1

        protected Gamepad1 gamepad1
        Gamepad1 device
      • gamepad2

        protected Gamepad2 gamepad2
        Gamepad2 device
      • id

        public java.lang.String id
        This is a unique identifier used to execute programs
      • displayName

        public java.lang.String displayName
        This is what will show up in the smartDashboard
      • Default

        public boolean Default
        If this is the defualt Teleop Program
      • elapsedTime

        public edu.wpi.first.wpilibj.Timer elapsedTime
        Used to get the elapsed time
    • Constructor Detail

      • TeleopInterface

        protected TeleopInterface​(RobotHardware Robot,
                                  java.lang.String name)
        Use this when writing an teleop program
        Parameters:
        Robot - this variable must contain all motors and sensors to be used
        name - display name for the smartdashboard
      • TeleopInterface

        protected TeleopInterface​(RobotHardware Robot,
                                  java.lang.String name,
                                  int ID)
      • TeleopInterface

        protected TeleopInterface​(RobotHardware Robot,
                                  java.lang.String name,
                                  boolean DEFAULT)
      • TeleopInterface

        protected TeleopInterface​(RobotHardware Robot,
                                  java.lang.String name,
                                  boolean DEFAULT,
                                  int ID)
    • Method Detail

      • teleopInit

        public void teleopInit()
        call this function once to run teleop init code.

        ONLY CALLED ONCE

      • teleopPeriodic

        public void teleopPeriodic()
        call this function repeatedly to run teleop periodic code.

        CALLED REPEATEDLY

      • teleopDisable

        public void teleopDisable()
        call this function once to run teleop disable code.

        ONLY CALLED ONCE