GithubHelp home page GithubHelp logo

team5818 / shermancrab-2019 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 463 KB

Team 5818's 2019 robot code.

License: GNU General Public License v3.0

Kotlin 0.57% Java 99.38% Shell 0.05%
frc frc-2019 frc-robot java

shermancrab-2019's People

Contributors

boomaa23 avatar emmiwyttenbach avatar guthre avatar laurian5 avatar octylfractal avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shermancrab-2019's Issues

Arm moves constantly

Arm moves at a constant slow speed when robot is turned on, regardless of gravity. Input from joysticks modifies this speed when pressed, but returns to the slow speed after joysticks are centered. Still uses competition code.

Gyroscope code

We should add a gyroscope and accompying code to the kitbot for rotation testing. This means a new field for the DriveTrain, and a new command like Rotate(double degrees) for testing.

Joystick Map

It would be nice to make a joystick map. Perhaps we can make an auto-generated one via Shuffleboard, but if not it'd be nice to just make it in Google Drawings or similar.

[Kitbot] Driving is swapped between tele/auto

Not sure what's up, but in teleop, pushing forward on the joystick goes in a direction, which we consider "forwards". Motion Magic likes to go the other way when given a positive distance.

Diagnostics Runner

Make something that will run diagnostics on the robot, potentially out to a UI

Hardware clamp swap

Hardware wants to swap the default state of the clamp to be "closed", and true will open it. We need to flip all the software clamp solenoids first.

Fix hatch push command

Hatch push is currently using very short timeouts. We want something like the following:

  • Push top/bottom pistons out
  • Release the panel
  • Wait until button release (this requires another command, or us to use end)
  • Retract top/bottom pistons
  • Keep the clamp in "closed" state -- this is connected to the next issue as well

[Kitbot] Encoder values are backwards

The encoders read negative values when going forward. Potentially the drive train inversion needs to be swapped. The code does still work with some absolute value trickery.

Hood position as a function of arm position

Something that would be nice is to calculate the hood's angle relative to the ground / robot, rather than to the arm. This would mean injecting the ArmController into the HoodController, and adding a new method returning degrees (I think this will be easiest, since we can calculate it for both). The hood degree calculations can be done similar to the arm, and we can just measure the positions later. This will help with calculating a gravity offset for the hood (something I thought of, after watching the hood fall while they were driving), and for maintaining a constant position of the hood (we can do a PID to the new degree value from the method).

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.