This repository was archived by the owner on Sep 14, 2019. It is now read-only.
Merge everything#66
Merged
Merged
Conversation
Includes motor inversions, joystick input inversions, etc.
of AutoMove and AutoTurn
fixed motor ports and joystick inversion commented out all VPID stuff for now --> next to test changed encoder ports a bit but might need revision
mostly! not quite sure if limiting target or changing kf based on current DT gear (high/low)
…ons. Not implemented yet
yes it works now w/ shifting btwn high and low gears (i.e. max target and kf changes correctly) VPID targets are a little funky though (i.e. +- when they should be the opposite) due to DifferentialDrive auto inversion, joystick inversion, etc. Wheels still moving in intended joystick direction though. Will just have to see if this becomes problematic
https://github.com/DriverStationComputer/RobotCode2018 Conflicts: Robot2018/src/org/usfirst/frc/team199/Robot2018/Robot.java Robot2018/src/org/usfirst/frc/team199/Robot2018/RobotMap.java
commented out VPID stuff in robotDrive constructor (and passed in SpdCtrGrps instead) and any enabling (TeleopDrive init and Robot testPeriodic)
…rt dashboard. * Refactored AutoMoveTo to be able to unit test. The test fails and the AutoMoveTo logic needs to be fixed. * Refactored PIDMove to use the SD interface and use PIDSource instead. requires() is called only if the dt exists. * Refactored PIDTurn to use the SD interface and use the gyro PIDSource interface instead. requires() is called only if the dt exists. * RunScript was refactored to pass the necessary parameters to PIDMove, PIDTurn, and AutoMoveTo. * Drivetrain (and interface) return the gyro’s PIDSource. * Wrote the AutoMoveToTest unit test.
…he bug needs fixing.
…r-AutoMoveTo-unit-tests JUnit Test for AutoMoveTo - * Defined SmartDashboardInterface to be able to mock calls to the sma…
After much arduous troubleshooting and a bad CIM, it works! Proper inversions for joysticks and motors, shifting gears works as expected (changed buttons a bit though), shifting drive type works as expected
… half of the drivetrain. Changed SmartDashboard to lbs, and converts to kg inside the code
pass Corvin's tests, etc.
Conflicts: Robot2018/src/org/usfirst/frc/team199/Robot2018/Robot.java Robot2018/src/org/usfirst/frc/team199/Robot2018/RobotMap.java merging, most of this stuff not working super well rn
includes shuffleboard json file intake srx commented out so doesn't look for motor that's not there some changes to calcDefkD method
VPID is tuned and working in both high and low gears
…ibility to intakeEject solenoids
getting to the point where the robot moves using PIDMove still needs way more testing and tuning
…ng on the pid commands
all vpid commentewd out move pid mostly tuned turn very unreliable still having initialize issues
Conflicts: Robot2018/src/org/usfirst/frc/team199/Robot2018/OI.java Robot2018/src/org/usfirst/frc/team199/Robot2018/Robot.java Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/PIDMove.java Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/PIDTurn.java Robot2018/src/org/usfirst/frc/team199/Robot2018/subsystems/Drivetrain.java
Conflicts: Robot2018/src/org/usfirst/frc/team199/Robot2018/OI.java Robot2018/src/org/usfirst/frc/team199/Robot2018/RobotMap.java Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/PIDTurn.java Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/RunScript.java Robot2018/src/org/usfirst/frc/team199/Robot2018/subsystems/IntakeEject.java
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.