Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

29 odometry #36

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

29 odometry #36

wants to merge 14 commits into from

Conversation

spamtactics
Copy link

I have written the basic outlines of how the Autonomous Navigation of the robot should look like as well as have gotten the inputs from the Gyro.
Now I just need to find out how to set the power of the motors.

Just imported the classes necessary to create the autonomous drives
Figure out how to get the IMU's gyro angle.
If there are any problems, follow the instructions in Git to download Pheonix software.
Finally got all the classes I need to use the SwerveDriveOdometry class
Added code to constantly update the PID controller.
Still not sure what to do with the output of .calculate().
This is the correct code
Also changed the code because I realised Swerve Drives don't need to turn the robot to go in a new direction
@spamtactics spamtactics linked an issue Oct 25, 2023 that may be closed by this pull request
@spamtactics spamtactics marked this pull request as ready for review October 26, 2023 03:44
@WebCoder49
Copy link
Member

Hopefully we can test this next week.

@spamtactics
Copy link
Author

@WebCoder49
Connect NavX gyro to I2C

@WebCoder49
Copy link
Member

WebCoder49 commented Nov 22, 2023

Outputted angle tested + seems correct
TODO: test with swerve drive once hardware + software available

I will rewrite an odometry for a differntial drive on a different subsystem file. but that will be done later.
turns out other stuff in the code needs it. So this stays for now
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.

Odometry
2 participants