Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 901 Bytes

File metadata and controls

10 lines (7 loc) · 901 Bytes

EncoderTest

Very simple TimedRobot to test sensors on.

This was generated through the WPILib: Create a new project command in VSCode. All the smarts are in Robot.java.

Points of interest:

  • vendordeps/Phoenix.json brings in the third party dependencies for the SRX which are in the com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX package.
  • The robot just passes the position of the two joysticks straight to the differentialdrive.
  • Use the WPI_TalonSRX class to control a Talon. It implements SpeedController so can be used in a drive, and also inherits from TalonSRX so you get access to getSensorCollection