Package org.texastorque.torquelib.base
Class TorqueRobotBase
java.lang.Object
edu.wpi.first.wpilibj.RobotBase
edu.wpi.first.wpilibj.IterativeRobotBase
edu.wpi.first.wpilibj.TimedRobot
org.texastorque.torquelib.base.TorqueRobotBase
- All Implemented Interfaces:
AutoCloseable
public class TorqueRobotBase
extends edu.wpi.first.wpilibj.TimedRobot
A replacment for TorqueIterative.
TorqueIterative was a modified version of the WPILIBJ IterativeRobot template.
It was created to improve upon the performance by utalizing two threads on the RoboRio.
However, it has neither been maintained nor updated since it's inception, and has
fallen out of date with the TimedRobot, IterativeRobotBase, and RobotBase standard.
Because of this, I (Justus) am working on a replacement class called TorqueRobotBase.
Although I may start working on drafts, I cannot start serious work unitl after our
next competition, the Texas Robotics Invitational, which we have but only 8 meetings
at 3 hours a piece to do way too much.
-
Field Summary
Fields inherited from class edu.wpi.first.wpilibj.TimedRobot
kDefaultPeriod
-
Constructor Summary
ConstructorDescriptionTorqueRobotBase
(TorqueInput input, TorqueAutoManager autoManager) TorqueRobotBase
(TorqueInput input, TorqueAutoManager autoManager, double period) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
addSubsystem
(TorqueSubsystem subsystem) final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
testInit()
final void
Methods inherited from class edu.wpi.first.wpilibj.TimedRobot
addPeriodic, addPeriodic, close, startCompetition
Methods inherited from class edu.wpi.first.wpilibj.IterativeRobotBase
autonomousExit, disabledExit, enableLiveWindowInTest, getPeriod, isLiveWindowEnabledInTest, loopFunc, setNetworkTablesFlushEnabled, simulationInit, simulationPeriodic, teleopExit, testExit
Methods inherited from class edu.wpi.first.wpilibj.RobotBase
getMainThreadId, getRuntimeType, isAutonomous, isAutonomousEnabled, isDisabled, isEnabled, isReal, isSimulation, isTeleop, isTeleopEnabled, isTest, startRobot, suppressExitWarning
-
Field Details
-
PERIOD
public static final double PERIOD- See Also:
-
-
Constructor Details
-
TorqueRobotBase
-
TorqueRobotBase
-
-
Method Details
-
addSubsystem
-
robotInit
public final void robotInit()- Overrides:
robotInit
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
robotPeriodic
public final void robotPeriodic()- Overrides:
robotPeriodic
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
disabledInit
public final void disabledInit()- Overrides:
disabledInit
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
disabledPeriodic
public final void disabledPeriodic()- Overrides:
disabledPeriodic
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
teleopInit
public final void teleopInit()- Overrides:
teleopInit
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
teleopPeriodic
public final void teleopPeriodic()- Overrides:
teleopPeriodic
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
autonomousInit
public final void autonomousInit()- Overrides:
autonomousInit
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
autonomousPeriodic
public final void autonomousPeriodic()- Overrides:
autonomousPeriodic
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
testInit
public final void testInit()- Overrides:
testInit
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
testPeriodic
public final void testPeriodic()- Overrides:
testPeriodic
in classedu.wpi.first.wpilibj.IterativeRobotBase
-
endCompetition
public final void endCompetition()- Overrides:
endCompetition
in classedu.wpi.first.wpilibj.TimedRobot
-