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

[Bug] EV3 servo model fails at higher speed #953

Closed
laurensvalk opened this issue Feb 18, 2023 · 2 comments
Closed

[Bug] EV3 servo model fails at higher speed #953

laurensvalk opened this issue Feb 18, 2023 · 2 comments
Assignees
Labels
bug Something isn't working platform: EV3 Issues related to LEGO MINDSTORMS EV3 software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) topic: control Issues involving control system algorithms topic: motors Issues involving motors

Comments

@laurensvalk
Copy link
Member

Describe the bug

Running open_loop.py with the EV3 large motor gives the output below.

It is a bit off at first (not yet tuned, as expected), but then goes wildly off course at higher speeds.

This looks more like an overflow somewhere.

image

@laurensvalk laurensvalk added bug Something isn't working platform: EV3 Issues related to LEGO MINDSTORMS EV3 topic: control Issues involving control system algorithms triage Issues that have not been triaged yet software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) topic: motors Issues involving motors and removed triage Issues that have not been triaged yet labels Feb 18, 2023
@laurensvalk laurensvalk self-assigned this Feb 18, 2023
@laurensvalk
Copy link
Member Author

This could well be the discrete time model (200 Hz) becoming unstable because the loop time is nearly 8ms instead of 5ms.

It did not appear so far with the patch in #955. We can re-open if this still happens with a loop time of 5ms.

@laurensvalk
Copy link
Member Author

We can re-open if this still happens with a loop time of 5ms.

It looks that way:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: EV3 Issues related to LEGO MINDSTORMS EV3 software: pybricks-micropython Issues with Pybricks MicroPython firmware (or EV3 runtime) topic: control Issues involving control system algorithms topic: motors Issues involving motors
Projects
None yet
Development

No branches or pull requests

1 participant