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

Pose Buffer Implementation #38

Closed
wants to merge 1 commit into from
Closed

Pose Buffer Implementation #38

wants to merge 1 commit into from

Conversation

Panda8188
Copy link
Contributor

  • Implemented Pose Buffer using Array Deques (pairs) with a max size of 50 poses
  • TODO: Implement Tests for pose buffer (not fully complete)

Implemented Pose Buffer using Array Deques (pairs) with a max size of 50 poses
TODO: Implement Tests for posebuffer (not fully complete)
import edu.wpi.first.math.Pair;
import edu.wpi.first.math.geometry.Pose2d;
import edu.wpi.first.wpilibj.Timer;
public class PoseBuffer {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also needs function to query an arbitrary timestamp, where we interpolate if it's within the range in the buffer, and return an error if the query is outside the range

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this function should be tested.

Can we also check that these tests are run by GitHub ci?

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

Successfully merging this pull request may close these issues.

3 participants