Robot code for 2019 FRC competition for team 1741
rar1741 / ra19_robotcode Goto Github PK
View Code? Open in Web Editor NEWRed Alert's 2019 Robot Code
Home Page: http://www.redalert1741.org
License: Other
Red Alert's 2019 Robot Code
Home Page: http://www.redalert1741.org
License: Other
Robot code for 2019 FRC competition for team 1741
4 CIMs, 2 on each side. 1 master and 1 tied slave per side.
Right now it's hard coded into the robot-supported variant.
There's a typo in the readme
https://github.com/RAR1741/RA19_RobotCode/blob/master/README.md
Add .codeclimate.yml
to the root of the repo.
Change all code to use 2 spaces for indentation
We have a new analog pressure sensor that allows us to know the exact pressure in the pneumatic system. We need a class that can accept an AnalogInput and use the voltage level to compute a pressure in known units.
Datasheet: http://www.revrobotics.com/content/docs/REV-11-1107-DS.pdf
See:
Our Travis tests won't work because we're missing class definitions when the tests execute.
Sample (from https://travis-ci.org/RAR1741/RA19_RobotCode/builds/480570413?utm_source=github_status&utm_medium=notification)
> Task :compileJava FAILED
/home/travis/build/RAR1741/RA19_RobotCode/src/main/java/frc/robot/Drivetrain.java:3: error: package com.ctre.phoenix.motorcontrol does not exist
import com.ctre.phoenix.motorcontrol.ControlMode;
Possible solutions?
We need to reverse the motors on the collection system and the lift since those will be corrected on the competition robot (and fixed on the practice robot).
(even just a template program)
It's becoming pretty clear that we'll need an onboard compressor for our pneumatic systems. WPILib has provided a simple Compressor class in the past that took care of managing a compressor by turning it on if the pressure in the tank ever fell below 120 PSI.
We should add that class to our robot code. Look, I'm linking the documentation! http://first.wpi.edu/FRC/roborio/release/docs/java/edu/wpi/first/wpilibj/Compressor.html
We need to do a couple of things:
Logging was found to be unacceptably slow (between 40-70 milliseconds per iteration) just before a district event, so we took logging out.
Obviously I want to re-introduce logging.
When the camera is addressed in the robot code, but there is no camera, a fatal exception is thrown. We should recover from this gracefully.
We have a scoring test that isn't working anymore, because that component was commented out / disabled. It's kind of annoying that all of our builds are treated as failures, so we should remove it.
Once #11 is done we'll need to actually control a solenoid via the test board. To do this we need a few things:
Ideally we should be able to press a button and have the solenoid/double solenoid toggle on release. For example, someone presses the A button and the solenoid triggers, and the piston extends. That person presses the A button again and it retracts.
See
Scoring now has a finger. We also extend/retract backwards to how we used to and it's really really confusing. We should clean the class up so the original semantics apply.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.