Skip to content
Discussion options

You must be logged in to vote

Yes! You can make it work with one Python function that you never have to change.

You can just enter your values in the blocks. Here is an example for a single motor:

The meaning of the values is given here. In this example we only set the first 3 values. The rest remains unchanged.

You can see the original values and the new ones at the bottom.

For a drivebase you can change the controls for the distance and heading:

To make these examples work, create an additional Python file called pid_python with the following contents:

from pybricks.tools import run_task

async def awaitable():
    return None

def set_pid(control, *values):
    print("Original", control.pid())
    control.pid(*va…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@luanveras3
Comment options

@safarnss
Comment options

@laurensvalk
Comment options

@safarnss
Comment options

Answer selected by luanveras3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants