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

Config Angle sensor. More...

Inheritance diagram for vex.AngleSensor:
vex.AnalogSensor

Public Member Functions

def __init__ (self, analognum)
 
def angle_degrees (self)
 Get the angle reading, in degrees [0...360]. 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 Angle sensor.

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

Constructor & Destructor Documentation

◆ __init__()

def vex.AngleSensor.__init__ (   self,
  analognum 
)

Reimplemented from vex.AnalogSensor.

Member Function Documentation

◆ angle_degrees()

def vex.AngleSensor.angle_degrees (   self)

Get the angle reading, in degrees [0...360].

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]