Skip to content

themilkenknights/Milken-Knights-Rapid-React

Repository files navigation

Milken-Knights-Rapid-React

stolen code from

  • SWERVE DRIVE:

    • Team 6624 - best path code and 180 awarness code
    • Team 1684 - 180 awarness code
    • Ether (chief delphi) - swerve drive
  • SWERVE AUTONOMOUS:

    • Team 3244 - basic auto structure and pidf config
    • Team 7166 - organization of auto and they had a similar auto
    • Programming Done Right - heading correction
  • LOGGING:

  • MISC:

    • Programming Done Right - toggle button
    • Everyone whos code I used but forgot to cite - most things

ROBOT MECHANISMS

  • Drivetrain

    • 4 Swerve modules, 2 Faclons per module
    • It can go unicorn drive mode
    • Baby mode for optimum safety
    • Has 5 gallons of loctite stored in the screws
  • Shooter

    • Shoot backwards, idk why but thats what they built!
    • Very very fast, but can only score low goal! so much wasted potential
  • Intake

    • Taking inspiration from doggy doors, our intake is small, compact, and effective! (i think)
    • Mechanum wheels help center the balls into the narrow space, ensuring maximum efficacy!
    • Stow position is up, not in! We are very unique
  • Climber

    • Ingenious climber using 2 telescope arms, 1 Faclon per arm
    • Uses physics and magic to work. Very cool
    • Warning: the motors might scream. Rest assured, however, these are screams of happiness!
  • Bumpers

    • Secure and safe bumpers
    • Made of pool noodle and fabric
    • Can withstand up to 20000 Newtons of force

our robot is decked out with the finest gear, as you can clearly see from these descriptive descriptions!

ROBOT FEATURES

  • Teleop

    • Flawless user controlled swerve with no drift and can even fly
    • Intake balls from miles away with our great intake
    • Shoot balls with perfect accuracy (up to 48 inches) so much accuracy, thank you imaginary limelight!
    • Climb traversal (actually works) automatically or manually
  • Autonomous

    • 20 ball auto, 100% works everytime, only takes 7 seconds
  • Self Defence

    • Turn baby mode off and spin like a beyblade to freak the crap out of your opponents!
    • Spontaneously dissasemble to confuse your opponents and teamates alike
  • Logging

    • After cursing myself to use java to work with networks instead of using another language, I have finally figured out how to log succesfully. WIP, but promising. Should be semi automated, with the only thing one would need to do is to run a script

our robot is very high tech and advanced, and is even a work in progress!

HOW TO USE:

  • Not really user friendly rn, all you need to do is change the constants (i think)
  • Also download the Better Comments extension for color coded comments
  • All functions and most variables should have javadocs. if they dont, they are either not mine and more info about them can be found on there own documentation page, or its mine and i forgot to add a javadoc

HOW DID WE CODE THE ROBOT?

  • Copy paste for teleop mainly, with some editing here and there.
  • Tried using WPIs SwerveControllerCommand, but it was too advanced for my feeble peasant brain, so I used Ethers papers for teleop movement.
  • For auto, I created a custom auto using math and motion magic.
  • SysID was also too complicated, and when I tried finding PIDF values for WPIs code and other PID loops, the values were no where near what they should have been. So, all PIDF values are guess and check values.
  • If anyone has a tutorial or code explaining how to use SysID and/or WPIs SwerveControllerCommand, please send it to me. Would appreciate it a lot.

MILKEN KNIGHTS WEBSITE



alt text

About

This is Milkens 2022 code for FRC's Rapid React game.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages