Skip to content

EncodedMotor.set_speed() inconsistency #83

@sfe-SparkFro

Description

@sfe-SparkFro

See here for problem explanation and replication instructions: https://xrp.discourse.group/t/should-this-code-work-as-designed/690/8?u=sparkfro

I suspect the PID controller is not being reset correctly when set_speed() is called. If I add self.speedController.clear_history() to the end of set_speed(), then I get consistent behavior. Not sure if that's the "right" solution, but it does seem to imply that's where the root problem is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions