Conversation
|
🌐 Preview URL: https://pr-291-frcsoftware.frcsoftware.workers.dev |
Adrianamm
marked this pull request as ready for review
September 17, 2026 04:02
roboteer5291
requested changes
Sep 17, 2026
| Luckily, your computer can also run robot code allowing it to be tested without a robot. | ||
| While there are some things that can be tested by simulating pure robot code, there are no physical motors to move and respond with new positions. | ||
| Instead we use simulation classes that use physics to take the desired input voltage to the motors and estimate how the physical mechanism would respond and update our motor controller instances to match. | ||
| Instead, we use simulation classes that use physics to take the desired input voltage to the motors and estimate how the physical mechanism would respond. |
Collaborator
There was a problem hiding this comment.
Suggested change
| Instead, we use simulation classes that use physics to take the desired input voltage to the motors and estimate how the physical mechanism would respond. | |
| Instead, we use simulation classes that use physics to take the desired input voltage to the motors and model how the physical mechanism would respond. |
| The first important window is the Sim GUI. | ||
| The Sim GUI is automatically opened when simulating code and acts as both a Driver Station and shows information about simulated devices such as position and velocity. | ||
| The Sim GUI is automatically opened when simulating code. | ||
| It acts as both a Driver Station and shows information about simulated devices such as position and velocity. |
Collaborator
There was a problem hiding this comment.
Suggested change
| It acts as both a Driver Station and shows information about simulated devices such as position and velocity. | |
| It acts as a Driver Station and shows information about simulated devices such as position and velocity. |
| </Aside> | ||
|
|
||
| When creating a motor controller object, the physical motor controller's CAN ID and the CAN Bus ID are given. | ||
| When creating a motor controller object, the physical motor controller's CAN ID and the CAN Bus IDs are given to the program in the constructor. |
Collaborator
There was a problem hiding this comment.
Suggested change
| When creating a motor controller object, the physical motor controller's CAN ID and the CAN Bus IDs are given to the program in the constructor. | |
| When creating a motor controller object, the physical motor controller's CAN ID and the CAN Bus must be provided in the constructor. |
| This will cause the motors to spin in a direction that would drive the robot forward when a positive input is given. | ||
| Since the motors on the right side of the drivetrain are facing the opposite direction they would cause the wheels try and drive the robot backwards when given a positive input if they were configured the same way. | ||
| Instead they should be configured with an invert setting of `false` or `CounterClockwise_Positive` so they also drive the robot forward when given a positive input. | ||
| Since the motors on the right side of the drivetrain are facing the opposite direction they would cause the wheels to try and drive the robot backwards when given a positive input if they were configured the same way. |
Collaborator
There was a problem hiding this comment.
Suggested change
| Since the motors on the right side of the drivetrain are facing the opposite direction they would cause the wheels to try and drive the robot backwards when given a positive input if they were configured the same way. | |
| Since the motors on the right side of the drivetrain are facing the opposite direction, they would cause the wheels to try and drive the robot backwards when given a positive input if they were configured the same way. |
|
|
||
| To control the robot with joysticks a Teleop OpMode needs to be created that periodically gives the `DifferentialDrive` instance new values from the controller. | ||
| First an instance of `XboxController` needs to be created. | ||
| In `MyTeleop.java`, an instance of XboxController needs to be created. |
Collaborator
There was a problem hiding this comment.
Suggested change
| In `MyTeleop.java`, an instance of XboxController needs to be created. | |
| In `MyTeleop.java`, an instance of `XboxController` needs to be created. |
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 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.
Description
What changed?
Followed 1a and made adjustments
Meta
Merge checklist: