GithubHelp home page GithubHelp logo

themilkenknights / milkenknights-powerup Goto Github PK

View Code? Open in Web Editor NEW
1.0 5.0 1.0 245.44 MB

Java Code for the Milken Knights 2018 Power Up Robot

Java 65.17% HTML 5.07% JavaScript 29.70% CSS 0.06%
frc java frc-power-up

milkenknights-powerup's People

Contributors

alexanderswerdlow avatar aswerdlow935 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

stephanshapiro

milkenknights-powerup's Issues

Update Feedforward on the fly

Update Talon Feedforward based on desired velocity AND desired acceleration. Waiting on CTRE Phoenix update to implement.

Trajectory Follower Timing Broken

The Trajectory Following code that gets the desired segment is broken. Both the interpolation code and the timing logic are broken. Needs to be revised/fixed

Turn Cube Button

Button to spin one intake motor in and the other motor out, in order to spin a cube that is in at 45ΒΊ.

LED Strip stuff

On startup/disable: solid purple
disabled/connected: white
if robot is enabled on blue allaince: pulse blue
if robot is enabled on red allaince: pulse red
if robot is enabled and allaince is unknown (or not in a match:) pulse purple
if arm is in manual mode: pulse red
if arm is calibrated (I know that we dont zero anymore, but drew should have a button to get the absolute value of the encoder. ): solid orange for 3 seconds
if intake has a cube: pulse yellow for 5 seconds

Yoel's Joystick:
button two: solid green [signals to human player to drop a cube from portal] (toggle on/off)
button three: turn off all lights (toggle on/off)

Tune Path Follower

Tune Path Follower kP, kA, and kAng to ensure accuracy and precision. Desired accuracy is +-0.5in and +-0.5deg

Generate Paths that can go backwards

Both TrajectoryLib and Pathfinder do not seem to allow for backwards movement. Need to find a solution for going backwards while generating (hopefully more than just add a negative to the generated paths when needed).

Create Test System Methods for all subsystems

Currently Arm Subsystem needs a checkSystem method to be implemented (and Drive's one needs to be fixed). Likely a drive forward and back in velocity setpoint mode, ensuring that the wheels reach a certain velocity and the motor current is above a certain level. The arm will hopefully enter it's zeroing routine then move to each of the preset setpoints.

Field Centric Turn-In-Place

Add rotate in place using path following (with different PID constants) or motion magic. Assign 4 buttons to 0,90,180,and 270 degree angles.

Robot Overshooting Path

Difficult to replicate bug that causes robot to go full speed, far past the desired path. Occurs every ~10-30 runs. Possibly a result of a race condition

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.