GithubHelp home page GithubHelp logo

team973 / 2017-inseason Goto Github PK

View Code? Open in Web Editor NEW
8.0 6.0 1.0 44.73 MB

Steamworks code of FRC Team 973: Greybots

CMake 0.88% Shell 0.36% C++ 97.72% C 1.04%
frc254 cheezypoofs bellarmine heavy-ions cpp javascript dean-kamen br8bots gr8bots greybots

2017-inseason's People

Contributors

kyled973 avatar yabberyabber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

mc42

2017-inseason's Issues

BoilerPixy subsystem

We need a subsystem for the 2 pixy's that look at the boiler.

This subsystem will have 0 actuators, but will talk to the pixy's to figure out the x and y offsets of the boiler target.

Off the top of my head we need 2 public methods:

  • double GetHorizontalOffset (returns a number from approx -1.0 to 1.0 with 0 as center)
  • int GetVerticalOffset (returns a number from 0 to 160 because that's the width of the camera)
  • double GetDistance (returns the distance in like inches based on vertical offset... I vote we interpolate this unless you wanna do the trig)

strftime not functioning ideas

Hey Andrew @yabberyabber

Sorry, to use this to get a hold of you. I didn't know an email address.
Looking at the code again with a unix terminal at my finger tips I see getting the current time like so,

time_t rawtime;
time(&rawtime);

That doesn't seem right by the man page on the c time function. Try

time_t rawtime;
rawtime = time( NULL );

Also the buffer size in strftime, should really be with the sizeof operator.

sizeof( buffer )

Cheers

Lights subsystem

Need a subsystem to handle the lights. Here's the interface we want:

  • void SetOn
  • void SetOff
  • void NotifyFlash(int nFlashes)

When we need to do vision, we'll call SetOn
When we're done with vision, we'll call SetOff
The smartest way to do this is probably in the drive controllers that use vision

When someone calls NotifyFlash(n), the lights will flash n times then return to the previous state (on or off)
When the robot gets ahold of a gear, the gear subsystem will call m_lights->NotifyFlash(3) and the driver will see it and know.

This is my favorite subsystem. It's heckin cute. https://pics.onsizzle.com/live-breaking-news-dang-heckin-doggo-do-a-zoom-he-6204849.png

Operator Controls

Allen has a template for making it look nice and pretty in a google spreadsheet.

Allen also has opinions on what constitutes good control layout.

Add code for new hopper expansion

Single pneumatic solenoid. Default closed.

In auto

  • Just expand it at the start (for now)

In teleop

  • Give Connor a button to expand it and a button to retract it

Drive controllers

I'm imagining 4 additional drive controllers.

AutoBoilerTargeting - targets the boiler and goes to a set distance
AssistedBoilerTargeting - targets the boiler but lets the user do the throttle
AutoGearTargeting - targets the gear and drives towards it and handles the peg colliding with the spoke
AssistedGearTargeting - targets the gear but lets the user do the throttle

The assisted targeting controllers might not be necessary. It feels unnatural. Is this evil?

GearVision subsystem

Subsystem that runs one pixy and returns the horizontal offset of the target.

The reason this is a subsystem is so it can be easily shared between two drive controllers (there's gonna be an AutoGearDriveController that just does the whole scoring operation and there's gonna be a AssistedGearDriveController that does the turning and lets the driver do the throttle)

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.