Config Angle sensor.
More...
Config Angle sensor.
- Parameters
-
analognum | analog port the sensor is connected to (1-8) |
◆ __init__()
def vex.AngleSensor.__init__ |
( |
|
self, |
|
|
|
analognum |
|
) |
| |
◆ 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]