FRC robot code for Build-A-Bot training. This training combines the basic concepts of electrical and programming to provide hands-on experience. Tharun, Deen, Arnav.
Neo Motor and SparkMax
CIM Motor and TalonSRX
Limit Switch
Pigeon (connected through TalonSRX)
Req 1: Display state of limitswitch to Shuffleboard and in console (pressed = true, not prassed = false)
Req 2: Read pigeon heading and display on shuffleboard (using compass widget)
Req 3: Teleop: Hold joystick button B to run a motor at 20% power forward.
Req 4: Teleop: Hold joystick button x to run a motor at 20% power backwards.
Req 5: Teleop: If limit switch is pressed, cut motor power to 50%.
Req 6: Use 2 CIMs to create a drivetrain to control the robot.