Turning velocity in python

Hello programmers,

So, I’m new yo programming this year and can’t seem to find out why my robot won’t turn fast as I tell it to in the program.

Picture:

Gif:
IMG_6893

I’m not sure but do you know how to code pystons

I’m not sure either about the issue yet either, but coding pistons (technical term: Pneumatic Cylinder) is:

# Initialize:
some_pneumatic_cylinder = DigitalOut(brain.three_wire_port.h) # Your port
# Change Pneumatic Cylinder State:
some_pneumatic_cylinder.set(True or False)
# This will be set to True after python OR anyway, but you put boolean there.

UPDATE I have got it working and it’s turning full speed.

What was your issue?

What I used last year was percentages rather than rpm, because it meant that the code would work whichever motors were used, and also meant that I could never have calculation problems.