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.jsonbrings in the third party dependencies for the SRX which are in thecom.ctre.phoenix.motorcontrol.can.WPI_TalonSRXpackage.- The robot just passes the position of the two joysticks straight to the differentialdrive.
- Use the
WPI_TalonSRXclass to control a Talon. It implementsSpeedControllerso can be used in a drive, and also inherits fromTalonSRXso you get access togetSensorCollection