team116 / ed2017

1 stars 0 forks source link

Create drive straight macro #3

Closed cartycrabber closed 7 years ago

cartycrabber commented 7 years ago

We need a function that uses the gyro to keep the robot driving straight, while still taking speed input from the driver

Aurangzeba commented 7 years ago

I'll get it done, Amanzeb A

On Jan 17, 2017 6:51 PM, "Will Carty" notifications@github.com wrote:

We need a function that uses the gyro to keep the robot driving straight, while still taking speed input from the driver

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/team116/ed2017/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/APD5wNBFmw8Qhj4FWMKzQKV8jwKfmHlRks5rTVQEgaJpZM4LmT7Y .

cartycrabber commented 7 years ago

I believe @eminaermin got a basic structure done in 96abd72

cartycrabber commented 7 years ago

Now that you have a basic structure that you understand (and looks like it should work), it might be useful to change this to use a PIDController for smoother and more precise control

http://wpilib.screenstepslive.com/s/4485/m/13810/l/241879-operating-the-robot-with-feedback-from-sensors-pid-control