frc-sonic-squirrels / 2023-robot-code Goto Github PK
View Code? Open in Web Editor NEW2023 FRC Season robot code for team 2930, the Sonic Squirrels
License: MIT License
2023 FRC Season robot code for team 2930, the Sonic Squirrels
License: MIT License
you will most likely have to change the code in the VisionIOPhotonVision to accommodate multiple cameras
Also, many of the Vision top-level methods will have to be changed to accommodate polling multiple cameras. Right now it just gets all the data from the 1 io but you might have to add a parameter to each method to check which camera its requesting data from.
also, remember to actually poll both io's in the Vision.java periodic and include its data in the pose estimator
look at the controller rumble command from the 2022 code and enhance it to finish when a certain button a pressed
have parameters for which button, rumble strength, duration etc etc.
drive team will place the robot in a predictable spot. Be able to score 1 game piece automatically
Create commands:
The way I think about it is that the IO is just the interface between hardware and software, you want to minimize the logic you put in the IO and put most of the logic in the top level so it works for every IO
Move the logic for clamping between 0 and max extension from here in the IO
To the setExtensionInches method in the top level Stinger.java file over here before the io.set...
Drivetrain
Elevator
Stinger
intake
vision
LED subsystem (blinkin)
Stingevator Setpoints and Commands
Bumpers
Photon vision can save an image to a file. https://docs.photonvision.org/en/latest/docs/programming/photonlib/getting-target-data.html#saving-pictures-to-file
We should save an image periodically, say every 0.5-2 seconds throughout a match, maybe more during testing so we can debug errors with photonvision.
Perhaps we can log more frequently when some conditions are met, like when the new image would create a large change in our estimated position.
This will have to wait until we have a USB stick installed on the roboRIO.
Install the Phoenix Pro license on two Carnivores:
The following licenses you purchased in Order#200003704 have been processed and are now ready to be activated using your account.
License SKU Description Quantity
LIC-23-80827900-B-FRC Pro 2023 - CANivore (FRC) 1 (2 seats per unit qty)
Documentation on how to use your license(s) can be found here.
High Priority
Mid Priority
Low Priority
Instructions for installing an Operating System and configuring an OrangePi to use PhotonVision.
https://docs.google.com/document/d/17DNCNHxUo31Rh-7VmXXyn-Y25UtGND3NPoGL9gRosaQ/edit
Here is a general setup video for putting the OS onto the OrangePi (we're using an SD card and not an M2 SSD, so ignore that part). https://www.youtube.com/watch?v=cBqV4QWj0lE
Bonus points if you set the root password to "squirrel"
Record the date an firmware numbers in the comments when you update a device.
Some methods still need to be implemented,
For example the set height inches is missing from the 2023 io
AdvantageScope has support for displaying mechanisms. This would help us debug our robot.
https://github.com/Mechanical-Advantage/AdvantageScope/blob/main/docs/tabs/MECHANISM.md
The WPILib documentation is here:
https://docs.wpilib.org/en/stable/docs/software/dashboards/glass/mech2d-widget.html
Start with a single vertical Elevator and then add the horizontal elevator.
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.