Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revamped auto path chooser + MBR paths
(Need to add x-negation instead of y-negation for amp paths in driveToPose) * moved swerve drive code to new repo * fixed import errors in 2024 update * removed out of date sim spark json file * added drive system to auto handler * added update auto method to drive fsm * cleaned up teleop input file * Pose resets to (0,0,0) at start of auto and teleop * fixed update(null) nullpointer issue * removed stale comments * fixed bugs with running chassis * resolved merge conflicts * working movement along multi-point paths * removed unused travel angle * checkstyle * added seperate tag and object alignment states * added auto path chooser for choosing paths via shuffleboard * checkstyle * deleted old naxx file * added new naxX file * fixing bugs with auto path chooser * test auto path chooser -- working * added maxswerve module copywright and code link * added more descriptive names for the paths on the path chooser * Update build job to Java 17 Fix build issue due to out of data JDK. * implemented blue aliance auto paths * added red alliance auto path temp code added the code for the auto paths assuming the robot is on the red alliance. some angles are to be determined. * reset odometry when enabled * commented out 0 for start auto * added PENDING state in AutoHandlerSystem and declared constants for auto path coordinates in SwerveConstants * paths 1 and 4 tested -- need to figure out accelation constant * paths 1 and 4 tested -- need to figure out accelation constant * ensured that the acceleration constant would always produce a speed within max speed * tested path 2, added turn movement for paths * checkstyle and fixed points * cleaned up code by removing uncessary comments, constants, and prints * checkstyle * checkstyle + merge cleanup * added pause(seconds) for the pending state in drive -- to be implemented * Test/week 1/apriltags and optimization (#4) * added rpi java code * added CV python files * added apriltag module and test script * streamlined code for only apriltag computation, replaced cv2.aruco with apriltag library * april tag code * working calibration code * added apriltag network table code * added pupil apriltag code * added working aruco code on opencv 4.5 * added calibration data for cam 1 * code reformat * removed image annotation to speed up april tag pipeline * modified driveToTag() to only align horizontally for testing purposes * tested april tag alignment with robot * switched april tag pose from camera-relative to tag-relative * switched aruco detection method to opencv 4.5 * added only rotation in driveToTag * added transformation to april tag values for alignment * negated x speed * saved last seen value of april tag info so it can be used for alignment * added apriltag yaw * made robot turn to april tag instead of parallel * added tag values on shuffleboard * changed constants * commented out transformations * only y movement * removed abs val from april tag vals * fixing merge conflicts * fixed merge errors --------- Co-authored-by: Akshay Anand <95551900+AknA13@users.noreply.github.com> Co-authored-by: Tanmayi <tanmayi.dasari@gmail.com> Co-authored-by: AknA13 <akshaya91306@gmail.com> * fixing errors, removing uncessary code * removed untested automation code * cleared automation code * added constant * added constant * implemented pause method * tested all autonomus paths at half distance --working * implemented double speed with trigger for drive * mbr auto paths * need to pull * started mbr paths * cleaning auto code * converted to mbr paths * converted to mbr paths * clean up paths * clean up paths * clean up paths * added path 3 and 6 * progress on mbr paths code * added mbr paths 1-3 * fixed can id for new chassis * fixing errors in code * checkstyle * sucessfully merged auto handler * sucessfully merged auto handler * added mech chooser on shuffle board * completed mbr svr auto paths for speaker merge * renamed paths * checkstyle * checkstyle * compiler errors fix * tested all svr and mbr speaker autonomus paths combined and made changes * removed pickup 4 (unfeasable), simplified points and differenciation between alliance paths * removed pickup 4 (unfeasable), simplified points and differenciation between alliance paths * simplified paths * set up amp paths * simplified paths * completed code for amp paths --------- Co-authored-by: Akshay Anand <95551900+AknA13@users.noreply.github.com> Co-authored-by: AG6GR <AG6GR@users.noreply.github.com> Co-authored-by: Martin <mlee187@student.fuhsd.org> Co-authored-by: Nikhil <koalaprismo@gmail.com> Co-authored-by: Tanmayi <tanmayi.dasari@gmail.com> Co-authored-by: AknA13 <akshaya91306@gmail.com>
- Loading branch information