Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autonomous & Drive Commands #11

Open
chrismeinz1516 opened this issue Jan 17, 2016 · 4 comments
Open

Autonomous & Drive Commands #11

chrismeinz1516 opened this issue Jan 17, 2016 · 4 comments
Milestone

Comments

@chrismeinz1516
Copy link

I am currently working on the commands for simply the driving during autonomous.

@chrismeinz1516
Copy link
Author

DriveStraight(DriveSystem, DistanceInMeters, SpeedPercentPerThrottle)
-- drives straight for a given distance and speed

Turn(DriveSystem, Angle, Speed)
-- turns until the angle given is reached at a certain speed

Arc(DriveSystem, Speed[MetersPerSecond], Angle, Radius)
-- drives in an arc motion until the given angle is completed for a certain radius.
-- possibly create a MetersPerSecond class instead of using a regular double

@JacobFreakingHarris
Copy link
Contributor

Doesn't my drive command cover these?

@agausmann
Copy link
Member

Not necessarily. Your drive command is time-based. These are used to move the robot a certain distance or angle, which is much different than running for a specific amount of time. We cannot reliably use a time-based command for distance unless we know our velocity is constant (which it is not).

Welcome to the world of physics :)

@JacobFreakingHarris
Copy link
Contributor

Ok. I thought it was constant.

@agausmann agausmann added this to the competition milestone Feb 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants