VEX EDR Python API
Public Member Functions | List of all members
vex.GyroSensor Class Reference

Config Gyro. More...

Inheritance diagram for vex.GyroSensor:
vex.AnalogSensor

Public Member Functions

def __init__ (self, analognum)
 
def gyro_degrees (self)
 Get the gyro angle, in degrees. More...
 
def raw_value (self)
 Get the raw readout from the sensor. More...
 
def percent (self)
 Get the calibrated reading, in percent [0...100]. More...
 

Detailed Description

Config Gyro.

Parameters
analognumanalog port the sensor is connected to (1-8)

Constructor & Destructor Documentation

◆ __init__()

def vex.GyroSensor.__init__ (   self,
  analognum 
)

Reimplemented from vex.AnalogSensor.

Member Function Documentation

◆ gyro_degrees()

def vex.GyroSensor.gyro_degrees (   self)

Get the gyro angle, in degrees.

Returns
number [0...360]

◆ raw_value()

def vex.AnalogSensor.raw_value (   self)
inherited

Get the raw readout from the sensor.

Returns
number

◆ percent()

def vex.AnalogSensor.percent (   self)
inherited

Get the calibrated reading, in percent [0...100].

Returns
number [0...100]