Skip to content

DevilBotz2876/ChargedUp2023

Repository files navigation

CI Javadoc

Charged Up 2023

Code for the FRC 2023 Robotics Competition

Resources

Hardware Configuration

  • DriveTrain
    • Motors
      • Left
        • Master: Talon SRX (on CAN ID 3)
        • Follower: Talon SRX (on CAN ID 1)
      • Right:
        • Master: Talon SRX (on CAN ID 4) - Inverted
        • Follower: Talon SRX (on CAN ID 2) - Inverted
    • Gear Box
      • Toughbox Mini Classic
        • Counts Per Revolution: 4096
        • Encoder Ratio: 1:1
      • Wheels
        • 6" Diameter (0.1524 meters)
    • Gyro
      • NavX (on SPI MXP Port)
  • Arm
    • Motor
      • TBD
    • Limit Switches
      • Upper
        • TBD
      • Lower
        • TBD
  • Gripper
    • TBD
  • Cameras
    • TBD

Desired Robot Controls

Hardware

  • 2 Joysticks
    • 1 dedicated for driving
    • 1 dedicated for arm/gripper controls

Functionality

Driver Control

  • Stick
    • arcade drive w/ proportional speed
    • y-axis is forward/back
    • x-axis is turn left/right
  • Buttons
    • Driver Assistance (to be discussed/designed further)
      • scoringZone (use april tag?)
        • left
        • middle
        • right
      • if pieceMode == cone: (use reflective tape?)
        • left
        • right
      • activate balance
  • Robot Hardware
    • Sensors
      • NavX
      • Ultrasonic (for detecting when hanging off ramp?)
      • Visual Camera
      • PhotonVision Camera? (placement on robot is critical for effective vision)

Arm Control

  • Stick
    • Y-axis w/ proportional speed
      • forward = arm down
      • backward = arm up
  • Buttons
    • gripControl
      • open
      • close
    • pieceSelection (will set LED on robot accordingly and adjust gripper pressure)
      • cone
      • cube
    • placementPosition (dependent on pieceMode)
      • low
      • medium
      • high
    • pickupPosition (dependent on pieceMode?)
      • shelf
      • ground (cube or upright cone)
      • ground (flat cone)
  • Hardware
    • Sensors
      • Limit Switch
        • Upper
        • Lower
      • Visual Camera?
    • LED Light (to indicate cone vs cube pickup to human @ loading station)

Desired Autonomous Routines

The routines in bold are the most important/common routines we will use

  1. Routine 1: Sit still
  2. Routine 2: Mobility
    1. Drive straight forwards towards the middle of the field
  3. Routine 3: Score and Mobility
    1. Score preloaded game piece
    2. Drive straight forwards towards the middle of the field
  4. Routine 4: Dock and engage
    1. Drive straight onto charge station and balance
    2. Use PID to automatically balance
  5. Routine 5: Mobility, dock, and engage
    1. Drive straight forwards towards the middle of the field over the charge station
    2. Drive back onto the charge station
    3. Use PID to automatically balance
  6. Routine 6: Score, dock, and engage
    1. Score preloaded game piece
    2. Drive straight onto charge station and balance
    3. Use PID to automatically balance
  7. Routine 7: Score, mobility, dock, and engage
    1. Score preloaded game piece
    2. Drive straight forwards towards the middle of the field over the charge station
    3. Drive back onto the charge station
    4. Use PID to automatically balance
  8. Routine 8: Score, mobility, pick up a game piece from center field, dock, and engage
    1. Score preloaded game piece
    2. Drive straight forwards towards the middle of the field over the charge station
    3. Pick up a game piece at center field
    4. Drive back onto the charge station
    5. Use PID to automatically balance
    • Parameters
      • Delay
      • Distance
      • ScoreLevel
      • GamePieceType

Parameters Definitions

Delay: Delay before robot starts moving, in seconds
Distance: Distance to leave the community, in feet/meters (TBD)
ScoreLevel: Either low, medium, or high
GamePieceType: Either cone or cube

Testing Checklist

  • Autonomous
    • Mobility
      • Forward
      • Reverse
    • Dock & Engage
      • Forward
      • Reverse
    • Mobility Dock & Engage
      • Red Alliance
        • Wall Side
        • Human Side
      • Blue Alliance
        • Wall Side
        • Human Side
  • Arm/Gripper
    • Basic
      • Arm Up (stops at upper limit switch)
      • Arm Down (stops at bottom limit switch)
      • Gripper Open
      • Gripper Close
    • Auto Position
      • Top
      • Middle
      • Bottom
      • Shelf
    • Gripper Safety
      • Auto close if arm moving down near bottom
      • Auto close if at bottom limit and the arm moving up
  • Driver Assist
    • Prepare for Pickup
    • Pickup from Ground
  • LEDs
    • Setting alliance changes LEDs to match red/blue
    • Starting autonomous changes LEDs to green
    • Moving Arm Up
    • Moving Arm Down