Git Product home page Git Product logo

0207-velocity-vortex's Introduction

Code Base for the 0207 Critical Mass Robot for the Velocity Vortex game

ftc_app is the source package that one would open in Android Studio

The notes folder contains various notes related to this season

The pdfs folder contains pdfs that helped us figure out the programming

0207-velocity-vortex's People

Contributors

burtorustum avatar plotnw avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

plotnw

0207-velocity-vortex's Issues

Servo Testing

We need to figure out how to use the servos.

EDIT:: Incorporate into Op Modes as well

Add non static movement speeds

Instead of only setting the speed of motors to 1 or 0, use a double to make slower/faster movement.

This should be added in Teleop_Invert.java, but no testing has been done yet.

Make strafing gradual

Make it so that the triggers on rob's controller direct input to the power for the strafes. This means when half down = 0.5 power input for strafe etc. Triggers output doubles so this should be simple I think. I'm letting you do this so I don't break the invert stuff. This could make it so the bot doesn't do somersaults when we strafe.

Make more adjustable key bindings

By making a variable called servoOut and setting that equal to the button we used for that, then using servoOut it will be easier to change keybindings.

Implement for all buttons hopefully
Might need a new object? Not sure if you can make synonyms for stuff lie that in jaba

Auton

Test auton:

  1. See how accurate it is without changes
  2. Test turning auton
  3. Time-permitting test strafe auton

Make RGB Auton

We need to make an auton that incorperates the RGB sensor

Auton Improvement

  • Add Gyro to ensure we don't spin out while strafing / after pressing beacon
  • Add Range/ODS/Touch to find if close to wall (Depends on if we are getting a field)
  • Add ODS to find white line
  • Add re-check of beacon after initial press to ensure color was changed correctly

Encoders

Get encoders working on the bot.

Test setting max speed higher on dc motors

As seen here:

When we select RUN_WITHOUT_ENCODER run mode and setPower(1.0), our unloaded NeveRest 20 DC motor runs at 2800 encoder counts per second (CPS).

Therefore, when we select RUN_USING_ENCODER run mode, setMaxSpeed(2800), and setPower(1.0), we expect the same motor to run at a constant 2240 CPS. Instead, the motor runs at roughly 1800 CPS.

Environment:

NeveRest 20 Gearmotor (am-3102)
Core Motor Controller: rev 2.0 (configured for AndyMark)
SDK: ver 2.4
OpMode: Iterative
Robot Controller phone: Moto G 2nd Gen
Driver Station phone: ZTE Speed
@gearsincorg
Collaborator
gearsincorg commented on Dec 12, 2016

This is another "feature" of the Modern Robotics motor controller.
Their firmware chooses to enforce a certain amount of overhead on any constant speed mode (RUN_USING_ENCODER and RUN_TO_POSITION).
This means that their controller will not actually ever try to reach full speed in either of these modes.

They claim it is a feature, I have been fighting for many years that it is an annoying, and undesired constraint. I feel that they should let the programmer decide how much overhead they want, based on the specific motor/application.

That said, if you have a motor that naturally has a lower CPS, then you can bump up the MaxSpeed() and simply request a lower power... This gets around the forced overhead.

eg: in RUN_TO_POSITION, the MR controller limits (clips) the actual top speed to about 65% of MaxSpeed. So if you leave Max Speed set at 4000 CPS, and never request more than 0.65 power, you will effectively approach the top speed of your motor.

You do need to monitor performance in the field to ensure that you aren't demanding too much speed. If you find that the motor is slow at responding to a reduction in requested power, you may have exceeded the motor's capabilities.

Note that this is NOT a FTC_SDK issue, it's a long standing Hitechnic/ModernRobotics issue.

Auton program cleaning

Clean the auton so that the if statements are easier to understand and also remove unnecessary if statements.

Cleanup Time

Do stuff for worlds prep

Not sure what that entails yet but probably will have

  • Auton Adjustment
  • Teleop Control Tweaking

Edit (Greg):

  • Documentation improvements

Work for 12/02/16

  • Ball feeder management
    • rgb sensor
  • distance to beacon(close enough or not)
    • distance sensor
  • Stopping over extending of servo
  • Another servo was added:

Wiki Ideas

  • Multiple Sensors
  • Servos Not Stopping at power 0
  • Watchdog (OpMode Stuck in Loop)

Do these eventually

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.