Skip to content

Update Mecanum Sample#187

Merged
puravdatta-sudo merged 3 commits intodevfrom
fix-mecanum-sample
Aug 2, 2021
Merged

Update Mecanum Sample#187
puravdatta-sudo merged 3 commits intodevfrom
fix-mecanum-sample

Conversation

@JIceberg
Copy link
Copy Markdown
Member

@JIceberg JIceberg commented Aug 2, 2021

Update Mecanum Sample

Please note that we accept pull requests from anyone, but that does not mean it will be merged.

What kind of change does this PR introduce?

  • Fix

This PR fixes the mecanum sample that was useless for FTCLib. Before, it did weird things with vector-based input driving for autonomous which is not useful for the user-base. This instead shows how to create the mecanum drive object, how to interact with it in teleop, and the differences between field centric and robot centric. In the future, more samples for simple autonomous programs (time-based) might be useful especially as we advertise more to rookies.

Did this PR introduce a breaking change?

A breaking change includes anything that breaks backwards compatibility either at compile or run time.
N/A - This was a sample.

Please make sure your PR satisfies the requirements of the contributing page

@JIceberg JIceberg requested a review from a team August 2, 2021 01:19
@JIceberg JIceberg self-assigned this Aug 2, 2021
@JIceberg JIceberg requested review from Jaiming724, JarnaChao09, Lunerwalker2, litehed and puravdatta-sudo and removed request for a team, Jaiming724 and Lunerwalker2 August 2, 2021 01:19
@JIceberg JIceberg added improvement Improves current features in FTCLib samples Adding or fixing FTCLib samples labels Aug 2, 2021
JarnaChao09
JarnaChao09 previously approved these changes Aug 2, 2021
Comment on lines +36 to +51
// optional fourth parameter for squared inputs
drive.driveRobotCentric(
driverOp.getLeftX(),
driverOp.getLeftY(),
driverOp.getRightX(),
false
);
} else {
// optional fifth parameter for squared inputs
drive.driveFieldCentric(
driverOp.getLeftX(),
driverOp.getLeftY(),
driverOp.getRightX(),
imu.getRotation2d().getDegrees(), // gyro value passed in here must be in degrees
false
);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should indicate what direction each joystick controls. Maybe a diagram like in RR?

Copy link
Copy Markdown
Member Author

@JIceberg JIceberg Aug 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That doesn't really work well for field centric, but I can try my best to come up with something! The diagrams in RR are lit, so I'll see what I can do.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn I wonder who made those diagrams he must be a cool dude 😎😎

puravdatta-sudo
puravdatta-sudo previously approved these changes Aug 2, 2021
Copy link
Copy Markdown
Member

@puravdatta-sudo puravdatta-sudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Great! Ready to merge!

Copy link
Copy Markdown
Member

@puravdatta-sudo puravdatta-sudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now!

@puravdatta-sudo puravdatta-sudo merged commit 6078a55 into dev Aug 2, 2021
@puravdatta-sudo puravdatta-sudo deleted the fix-mecanum-sample branch August 2, 2021 18:51
JIceberg added a commit that referenced this pull request Feb 21, 2022
* fix readme

* fix: contributing guidelines outdated errors

* update PR template

* Add Upgraded Motor Groups (#164)

* feat: upgraded motor groups

* fix: add stop motor when button is released

* fix: missing follower logic in set()

* change x on L106 to motor to be more descriptive

Co-authored-by: dansman805 <[email protected]>

* change x on L113 to motor to be more descriptive

Co-authored-by: dansman805 <[email protected]>

* feat: verbose comments on flywheel sample

* fix: change NotNull JB annotation to NonNull from androidx

* fix: missing comment for clearing the bulk cache in sample

Co-authored-by: Purav Datta <[email protected]>
Co-authored-by: dansman805 <[email protected]>

* add: new method to directly power mecanum drive wheels (#186)

* Update Mecanum Sample (#187)

* fix: mecanum sample to be readable and useful

* add: drawings and descriptions throughout sample

* fix: model of robot frame

* feat: update SDK dependencies

* fix: Bumped eocv to 1.5.0 and fixed openCameraDeviceAsync Impls (#193)

* fix: Bumped eocv to 1.5.0 and fixed breaking changes

* fix: Changed the vision release version to 2.0.0

* fix: Better error handling of camera opening

* fix: Surrounded the callback with the lock

* fix: issues with reset in RevIMU (#195)

* fix: issues with ramsete controller ending before command runs (#194)

* Min and Max flipped. Clarify AngleUnit type in parameter name (#201)

min and max arguments flipped on call to constructor. Consider renaming parameter to minDegree and maxDegree to clarify to caller that AngleUnit.DEGREES is assumed.

* Introduce Rate Feature to Motor Encoders (#196)

* feat: clean up motor group inversion and add encoder rate

* fix: typo in javadoc comment

* fix: set last state before current state (#204)

* Capstone Vision for 2021 Season (#200)

* Added capstone detector and pipeline

* Updated values on lines 119 and 117 of Capstone Detector

* Added setters to tune area of detection

* Released hierarchy Mat and now gives definition of contour

* Released all matrices and fully tested pipeline

Should be ready for release

* Vector2d Normalization (#205)

* fix: updated issue templates (#203)

* feat: modify README and dependencies for v2.0 release (#206)

Co-authored-by: Purav Datta <[email protected]>
Co-authored-by: dansman805 <[email protected]>
Co-authored-by: Lunerwalker2 <[email protected]>
Co-authored-by: Kevin Sheck <[email protected]>
Co-authored-by: Dolphin2Point1 <[email protected]>
Co-authored-by: Ethan Leitner <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves current features in FTCLib samples Adding or fixing FTCLib samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants