Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

5 turn a given angle autonomously#25

Open
09lkei wants to merge 23 commits into
mainfrom
5-turn-a-given-angle-autonomously
Open

5 turn a given angle autonomously#25
09lkei wants to merge 23 commits into
mainfrom
5-turn-a-given-angle-autonomously

Conversation

@09lkei

@09lkei 09lkei commented Feb 28, 2024

Copy link
Copy Markdown

No description provided.

ethanharjabrata and others added 23 commits January 28, 2024 16:50
Some values need updating:
Motor channels
Encoder channels
DistancePerPulse
Code used to find out the distance per pulse of the robot
Make build.gradle errorless
Created the code for the motors, but I haven't bound the snap function to a button yet.
It is bound to button 1 on the Joystick
Includes code so that the robot can update its PID.
Also allows the robot to offset the encoders such that they will be field oriented (assuming that the robot starts facing the field)
Forgot to update the robotContainer
I changed it such that the encoder will actually tell you the distance moved since the last time it was called, not the total distance moved as this would be problematic if you were using two different commands during that time.
I have also used two different constants,
distancePerRotation meaning the circumference of the motor.
movementPerRotation meaning the actual distance travelled by the robot when the move motors rotate once.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants