-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Advantagekit integration #5
Draft
devsamuelv
wants to merge
18
commits into
main
Choose a base branch
from
advantagekit-demo-sam
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Created an arm pivot system. Arm moved to down pos when Y is pressed. Up pos untested due to extreme gear ratios.
created an arm speed cap
…nd down. Doge! MERGÉCONFLICTS WOOOOO
…stick commands for intake
added a "back to start" button (x) that moves the arm back to the closed position. Also separated the tower and base joysticks.
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dev Note
Integrated AdvantageKit into the intake subsystem. Accomplished by creating an input layer for the intake & created a generic IO interface to allow for the transfer of common methods like
processInputs
,stop
& inputs object.Here's an example IO class using the custom IO interface. It's bare right now however as IO layers become more complicated, this will help with standardizing the process.
Another thing, AdvantageKit creates a
BuildConstants.java
file to store build info about the project like current branch, commit id, etc. This helps with code tracking during testing & competition.Also in the
ArmSubsystem
I decided to experiment with an alternative structure which doesn't use an IO layer, since using one can cause most of the control functionality moving into the IO layer which isn't ideal if your trying to keep subsystems involved. Hence the experiment, an actually I found that turning the subsystem into a layer is a good alternative.I'll elaborate, If we combine the update logic that would typically reside in
updateInputs
method. We are basically giving some of the responsibilities of updating inputs to the subsystem. The subsystem now can log data however doing this removes the ability to change the behavior & objects being used which is crucial for simulation since sometimes their are completely different versions of the device classes being used when it comes to simulation. Now, I'm not saying you can't also combine that logic into the subsystem itself, but if your going to do that then try looking to the layer solution first.For more context, you also need to update the inputs when doing any control work like powering a motor or giving a PIDController a target like so.