|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Gyro and Tank Drive
Hey all, I am currently trying to get the gyro to work with our robot and our robot currently drives in tank drive and we'd like to keep it that way, but still be able to use the gyro. I am unsure how to go about programming the gyro with tank drive as I can only find resources about using the gyro with only one joystick controlling the forward and back movements of the robot.
Any help would be great, thank you in advance ![]() |
|
#2
|
||||
|
||||
|
Re: Gyro and Tank Drive
Quote:
|
|
#3
|
|||
|
|||
|
Re: Gyro and Tank Drive
We are using tank drive with two joysticks, one controls forward/back and the other controls left/right
We are using an ADXRS450 to keep the robot going straight while we drive. We use a P-controller that "takes over" the role of the turning joystick when driving straight. Our code is on our repository here: https://github.com/dhruviyer/5465-20...bot/Robot.java Is this what you are looking for? |
|
#4
|
|||
|
|||
|
Re: Gyro and Tank Drive
Quote:
![]() |
|
#5
|
||||
|
||||
|
Re: Gyro and Tank Drive
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|