VEX IQ Python API
|
Config Gyroscope sensor. More...
Public Member Functions | |
def | __init__ (self, port=None, calibrate=True) |
def | angle (self, value=None) |
Get or set the angle, -180 to +180 degrees. More... | |
def | calibrate (self, level=12) |
Calibrate the gyro. More... | |
def | is_calibrating (self) |
True if calibration is in progress, false otherwise. More... | |
Config Gyroscope sensor.
port | 1-12, None to autodetect. Default None. |
calibrate | True to start calibration. Default False. |
def vexiq.Gyro.__init__ | ( | self, | |
port = None , |
|||
calibrate = True |
|||
) |
def vexiq.Gyro.angle | ( | self, | |
value = None |
|||
) |
Get or set the angle, -180 to +180 degrees.
Zero if calibration is in progress.
def vexiq.Gyro.calibrate | ( | self, | |
level = 12 |
|||
) |
Calibrate the gyro.
Default setting takes around 8 seconds.
level | 6-15, degree of calibration higher value takes a longer average (default 12). |
def vexiq.Gyro.is_calibrating | ( | self | ) |
True if calibration is in progress, false otherwise.