Package frc.team_8840_lib.examples
Class SwerveDriveExample
java.lang.Object
frc.team_8840_lib.listeners.EventListener
frc.team_8840_lib.examples.SwerveDriveExample
This example goes more into detail about initializing the SwerveDrive class.
See the AutonomousExample file for better usage on driving/autonomous.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublevoidvoidvoidvoidvoidvoidThis method should be spread out throughout different commands, but it's all in one method for simplicity.voidvoidvoidvoidMethods inherited from class frc.team_8840_lib.listeners.EventListener
phase
-
Constructor Details
-
SwerveDriveExample
public SwerveDriveExample()
-
-
Method Details
-
robotInit
public void robotInit()- Specified by:
robotInitin classEventListener
-
robotPeriodic
public void robotPeriodic()- Specified by:
robotPeriodicin classEventListener
-
onAutonomousEnable
public void onAutonomousEnable()- Specified by:
onAutonomousEnablein classEventListener
-
onAutonomousPeriodic
public void onAutonomousPeriodic()- Specified by:
onAutonomousPeriodicin classEventListener
-
onTeleopEnable
public void onTeleopEnable()- Specified by:
onTeleopEnablein classEventListener
-
onTeleopPeriodic
public void onTeleopPeriodic()This method should be spread out throughout different commands, but it's all in one method for simplicity. This method is called constantly whenever the robot is in teleop mode.- Specified by:
onTeleopPeriodicin classEventListener
-
getForward
public double getForward() -
getStrafe
public double getStrafe() -
onTestEnable
public void onTestEnable()- Specified by:
onTestEnablein classEventListener
-
onTestPeriodic
public void onTestPeriodic()- Specified by:
onTestPeriodicin classEventListener
-
onDisabled
public void onDisabled()- Specified by:
onDisabledin classEventListener
-
onDisabledPeriodic
public void onDisabledPeriodic()- Specified by:
onDisabledPeriodicin classEventListener
-