GithubHelp home page GithubHelp logo

bainbridgefirst's People

Contributors

bendevries avatar benwarkentin2 avatar binnur avatar dafaust avatar gnewt avatar joevandyke avatar keetcurtis avatar ronnienigash avatar tarkanal-kazily avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bainbridgefirst's Issues

Talon calibration via driver station test mode

Validate that driver station's test mode can be used to calibrate talon motor controller. Note, instead of using the joystick, test mode's motor controls would be used.

From the manual: http://www.crosstheroadelectronics.com/Talon_User_Manual_1_1.pdf
6) Calibration
The calibration procedure takes the minimum, maximum and center values of the PWM input signal and scales the output based on these values. Calibrating the Talon will allow full range of control with PWM signals that are not within the default range. Calibrating will also correct any non-center issues with input devices such as gamepads or joysticks.
To calibrate the Talon:

  1. Press and hold the button labeled β€œCAL” with a paper clip. The LED should begin to blink red/green.
  2. Continue to keep the button pressed while moving the joystick full forward and full reverse. You may do this as many times as you like.
  3. Center the joystick and then release the CAL button.
  4. If calibration was successful, the LED will blink green several
    times. If the LED blinks red several times, the calibration was not valid. If this happens, the Talon will use the last valid calibration values.
    All calibration values are retained after power cycle or reset.

Fix warning messages due to incorrect accessing of static members

Looks like we have issues accessing our static members correctly, which are declared in Harvester.java but used in HarvesterWheelsBack and HarvesterWheelsForward and few other places as well.

public static final int INTAKE = 1;
public static final int EXPEL = 2;

// code below refers to the harvester instance of static member - generates warning Robot.harvester.setWheelSpeed(Robot.harvester.getHarvesterSpeed(Robot.harvester.INTAKE));

// code should be referring to the class static member

import org.usfirst.frc4915.ArcadeDriveRobot.subsystems.Harvester; Robot.harvester.setWheelSpeed(Robot.harvester.getHarvesterSpeed(Harvester.INTAKE));

Wiki Pages

Coding Practices -- Done
IP listings -- Done
Robot builder information -- Done

Fill out Launcher Functionality

RetractGearboxPneumatics and LoosenGearboxPneumatics.java do not have current functionality in their execute methods. Will want to change around how the commands work.

We must check to make sure that the harvester is fully extended with the latest magnetic switch and the launcher is cocked back before loosening the gearbox and firing the launcher w/ ball.

Winding Motor Conditionals

We need to breakdown how we will make the winding motor work with our limit switch, running it until the limit switch returns a true value (launcher is fully cocked back) and then kill the motors.

Timer.delay() in DriveStraight.execute() could be a problem

Code in DriveStraight.java includes a (short) delay in execute(). This seems unnecessary.

protected void execute() {
    double angle = Robot.gyroscope.getAngle(); // get current heading
    Robot.driveTrain.drive(1.0, (angle) * (KP)); // drive towards heading 0
    Timer.delay(0.004);
}

The delay is for 4ms. Note that execute() is called by the scheduler every 20ms, so there is already a 20ms delay between iterations.

If the issue is jitter in the gyroscope reading, it may be better to average the angle over a series of execute() calls, or maybe implement a PID.

At the very least, I'd remove the Timer.delay() call from the code...

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.