VEX EDR Python API
Public Member Functions | List of all members
vex.AnalogSensor Class Reference
Inheritance diagram for vex.AnalogSensor:
vex.AngleSensor vex.GyroSensor vex.LightSensor vex.LineTracker

Public Member Functions

def __init__ (self, analognum)
 
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

 \if lang_en
     **Config** Analog sensor
     @param analognum analog port the sensor is connected to.
 \elseif lang_sr
     **Config** Аналогни сензор
     @param analognum аналогни порт на који је повезан сензор.
 \elseif lang_ru
     **Config** Аналоговый датчик
     @param analognum analog port the sensor is connected to.
 \endif

Constructor & Destructor Documentation

◆ __init__()

def vex.AnalogSensor.__init__ (   self,
  analognum 
)

Member Function Documentation

◆ raw_value()

def vex.AnalogSensor.raw_value (   self)

Get the raw readout from the sensor.

Returns
number

◆ percent()

def vex.AnalogSensor.percent (   self)

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

Returns
number [0...100]