GithubHelp home page GithubHelp logo

bc-robotics-4504 / 2024-season Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 88.78 MB

Robot code for the FRC 2024 Season. Written in Python3 for the MagicRobot framework.

Home Page: https://www.bcrobotics4504.com/

Python 98.35% Batchfile 1.65%
frc python robotics robotpy 4504

2024-season's Introduction

2024-Season: Buckeye Regional

Robotpy Setup

BC Robotics (Team #4504) has designed their 2024 FIRST Robotics submission using Robotpy with the MagicBot Framework. To keep the relevant libraries current, the following code will need to be run regularly in a terminal interface:

python -m pip install --upgrade pip
python -m pip install robotpy wpilib
robotpy installer download-python
robotpy installer install-python
robotpy sync
robotpy installer download robotpy[all]
robotpy installer install robotpy[all]

Hardware Configuration

Swerve Drive

Component Type ID/Details Inverted Gear Ratio Wheel Diameter Absolute Encoder Z-Offset
Front Left Angle Motor SparkMaxTurning 6 No 1 1 Yes 5.7535123
Front Left Speed Motor SparkMaxDriving 5 No 1 0.1143
Rear Left Angle Motor SparkMaxTurning 8 No 1 1 Yes 5.6867370
Rear Left Speed Motor SparkMaxDriving 7 No 1 0.1143
Rear Right Angle Motor SparkMaxTurning 2 No 1 1 Yes 5.5975077
Rear Right Speed Motor SparkMaxDriving 1 No 1 0.1143
Front Right Angle Motor SparkMaxTurning 4 No 1 1 Yes 0.0182671
Front Right Speed Motor SparkMaxDriving 3 No 1 0.1143

Launcher

Component Type ID/Details Inverted Gear Ratio Follower CAN ID
Launcher Spinner Left SparkMaxDualSpinner 10 Yes
Launcher Spinner Right SparkMaxDualSpinner 12 No
Intake Spinner Left SparkMaxDualSpinner 14 Yes
Intake Spinner Right SparkMaxDualSpinner 13 Yes
Intake Pivot SparkMaxPivot 9 No 4 15

Climber

Component Type ID/Details Inverted
Climber Motor Left SparkMaxClimb 16 No
Climber Motor Right SparkMaxClimb 17 Yes

Robot IP Address

10.45.4.1

Vision

  • Limelight 2.0:
    • Static IP address (Front) 10.4.45.11
    • Static IP address (Rear) 10.4.45.12
Component Type IP Name
Limelight Limelight 10.4.45.11 limelight
Limelight Front Limelight 10.4.45.12 limelight-front

Robot Controls

  • Input device ID 0
  • Left Joystick (Lx, Ly): Controls the robot's movement in the field. The X-axis (Lx) translates to movement in the x-direction while the Y-axis translates to movement in the y-direction.
  • Right Joystick (Rx): Controls the robot's rotation on the field. The X-axis (Rx) influences the angular velocity of the robot.
  • Right Trigger (RT): Engages the launcher to shoot.
  • Left Trigger (LT): Engages auto-alignment with the AprilTag. When pressed beyond a certain threshold(.35), it activates the alignment process for precise targeting.
  • Y Button: Positions the intake to score in the amp.
  • B Button: Deactivates the front camera, raises the intake.
  • A Button: Activates the front camera and lowers the intake.

Autonomous Operation

Our autonomous plan is as follows...

  1. Backup to shooting positon
  2. Shoot preloaded game piece
  3. Backup 2.75844 meters to exit community

2024-season's People

Contributors

goosebucket1 avatar moneydollar avatar sweeneyd avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.