Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Improve ChassisController constructor with Gyro Support #297

Open
EricHallahan opened this issue Dec 22, 2018 · 7 comments
Open

Improve ChassisController constructor with Gyro Support #297

EricHallahan opened this issue Dec 22, 2018 · 7 comments
Labels
question Further information is requested

Comments

@EricHallahan
Copy link

Is your feature request related to a problem? Please describe.
Yaw-rate gyro support is lacking in OkapiLib, and for robots with unreliable encoders, turnAngle() is entirely unreliable.

Describe the solution you"d like
Overload the ChassisController constructor with a gyro.
Utilize the gyro when turnAngle() is called, potentially fused with the existing encoder method.

Describe alternatives you"ve considered
Of course, this could be done separately, but if the point is to enable high level programming, then it is better integrated into OkapiLib.

Versions

PROS Project for v5...
Name      Version    Origin
--------  ---------  -------------
kernel    3.1.3      pros-mainline
okapilib  3.3.5      pros-mainline

Additional context
This should have precedence over any odometry work. What is the point of odometry if you do not know where you are in the first place?

@Octogonapus
Copy link
Member

We have found the gyro to be less reliable than encoder wheels. Why do you say your encoders are unreliable? Do you have them mounted on unpowered wheels?

@3038922

This comment has been minimized.

@3038922

This comment has been minimized.

@Octogonapus Octogonapus added the question Further information is requested label Jan 1, 2019
@3038922

This comment has been minimized.

@3038922

This comment has been minimized.

@kusti8
Copy link

kusti8 commented Jan 13, 2019

If you don"t have passive wheels, then the gyro is the next best thing and if you"re smart with how you reset it and square up, then it isn"t too bad. A version of ChassisControllerPID, but with the option to use a gyro would be great.

@EricHallahan
Copy link
Author

I mostly determined the problem was me being stupid when measuring my chassis. This is still a feature that should be investigated, but with low priority.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants