Skip to content

Create a RobotPath.HeadingSupplier.stop() Method #53

@CoolSpy3

Description

@CoolSpy3

As mentioned in the lib199 tour, in RobotPath.createPathCommand, hs.reset() should be called as part of an InstantCommand appended to the beginning of the returned path group. This would fix a bug where (because the heading supplier's time does not get stopped after the path completes), the timer continues running between the call to hs.reset() and the start of the path if the path is re-run, leading to incorrect headings. A better option is to do the above as well as create a HeadingSupplier.stop() method which stops the timer and calls HeadingSupplier.reset().

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions