GithubHelp home page GithubHelp logo

infiniterecharge's Introduction

2020 FIRST INFINITE RECHARGE

tunnel-rat     tunnel-rat2

Controls

driver game-controls

Talons

Subsystem Type Talon ID PDP
Drive SRX azimuth 0 6
Drive SRX azimuth 1 4
Drive SRX azimuth 2 7
Drive SRX azimuth 3 5
Drive FX drive 10 2
Drive FX drive 11 0
Drive FX drive 12 3
Drive FX drive 13 1
Intake FX squids 20 15
Intake FX intake 21 8
Magazine SRX magazine 30 9
Shooter FX leftMaster 40 12
Shooter FX rightSlave 41 13
Shooter SRX turret 42 10
Shooter SRX hood 43 11
Climb SRX climb 50 14
  • Intake beam break routed to reverse limit switch on magazine
  • Magazine beam break routed to forward limit switch on hood

Servos

Subsystem Servo ID
Climb ratchet 0

DIO

Subsystem DIO ID
AutonSwitch 0 0
AutonSwitch 1 1
AutonSwitch 2 2
AutonSwitch 3 3
AutonSwitch 4 4
DIO Pin Missing 5 5
AutonSwitch 6 6
EventFlag flag 8
Constants protoBot 9

Auto Switch

Switch Auton
0x10 no delay shoot
0x11 4 sec delay
0x12 8 sec delay
0x13 10 sec delay
0x20 trench auto
0x30 90 degree feed

infiniterecharge's People

Contributors

apatel66 avatar jcollins5353 avatar je514 avatar jhh avatar linkkowalski avatar maxwellscott922 avatar mwitcpalek avatar paulpschreiber avatar rabsamu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

rlkeen13

infiniterecharge's Issues

Intake Reversal Updates

  • up on the d-pad needs to reverse magazine and intake
  • down on the d-pad needs to reverse just the intake

Remove Duplicate WaitCommands

Switch all instances of wait command to wpilib version and switch

  • our version uses milliseconds not seconds so make sure to switch all times over to seconds

Teleop Bugs

  • Magazine should turn off when beam break is no longer broken during the pre-shoot sequence that pulls the balls down before spinning up the shooter

    • right now balls could jam in the magazine
  • Make wait time before turning off intake longer, sometimes the intake will turn off before they have 5 balls

Hood Zero Check Commands

  • check hood zero:
    • button to put hood to position 0
    • button to put hood to zero offset ticks (1820)

Game Controller Intake Updates

  • If the game controller intake button is double-pressed it needs to ignore the intake beam break
  • if code mistakenly shuts off the intake early this allows the drive team to override the beam break

Lookup Table Adjust Values

  • 1 constant indicating degrees to adjust the turret angle by
  • for each of the 4 ranges in the piecewise lookup table:
    • 4 constants indicate ticks for 1 inch change in height of ball (1 for each region)
    • 4 constants indicating the inches the ball pattern needs to move by (1 for each region)
  • implement using these constants

Batter shot

Make a button that fires from right up against the goal

Optimize Teleop Sequences

  • now that hood, shooter, and turret are separate subsystems more things can be in parallel
  • go through and find places to speed up sequences by running things in parallel

Vision Subsystem

Create interface with Deadeye:

  • logic on robot-side math for error angle
  • logic on robot-side math for distance
  • read-in lookup table for hood angle/shooter speed based on vision results

X-lock doesn't choose closest position

  • x-lock always chooses the same encoder position on the azimuth, this causes unnecessary 360 degree rotations on the wheels
  • choose the closest relative encoder position that is at the correct angle

Set up logic for Comp vs. Proto Constants

A short on DIO 9 will indicate that the current robot is the protobot. Initialize the constants that are robot-specific based on this

  • right now just absolute encoder zero ticks

Update RoboRio for 2021

Note: be sure to save networktable information (held in /home/lvuser/networktables.ini) to avoid losing camera config

Auto Commands

  • implement trajectory generation
  • stub out initial auto commands
  • auto switch implementation

Turn off Shooter if going around the discontinuity in the turret

  • if we have to 360 wrap around in order to not break the cable, turn off the magazine and intake so balls aren't fired during this condition
  • magazine and intake need to be turned back on when we have a target again, with the same delay between them as the first time to prevent jams

Dashboard Indicators

  • Indicator for when we have 5 balls
  • Indicator for when there is a ball at the top of the magazine
  • Indicator for when the intake is stalled and we are trying to correct it

Color Wheel Subsystem

Create subsystem for Color Sensor

  • method to calibrate colors
  • logic for what direction to spin in in position control
  • method to get the current color
  • method to get color to spin to from driver station

Notes:

  • deploying the color wheel spinner will be part of the climb subsystem
  • spinning the color wheel will be part of the magazine subsystem

Auto Seek Target

If the arm sequence doesn't see a valid target by going to zero (field oriented) then scan for the target on the correct half of the field before starting to track the target

Rough out Shooter Subsystem

Rough out Subsystem:

  • create all talons
  • logic for turret wrapping
  • method for vision to adjust turret angle
  • zeroing logic for turret and hood

X-Lock Command for Drive

Create a command that locks the wheels into an x-configuration and attach it to the x button on the drive controller

Clean up Climb Sequence

  • ratchet needs to be different during teleop
  • holding current on the climb isn't enough to keep the climber down

Create gyro offset buttons for climbing

During the climb offset the gyro so straight forward is towards the bar and strafe is along the bar

  • follow diagram in readme but there is one button to set the offset and one to undo the offset

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.