| Package | org.MARS.robot.sensors |
| Class | public class EdgeSensor |
| Inheritance | EdgeSensor AbstractSensor AbstractElectronicDevice |
See also
| Method | Defined by | ||
|---|---|---|---|
|
EdgeSensor(shape:Shape)
Creates a sensor with the given shape
| EdgeSensor | ||
![]() |
Get a certain IO port by its number
| AbstractElectronicDevice | |
|
getReading():void
Determine if the sensor is on the table and set the
output port accordingly: LOW if the sensor is on the
table and HIGH if the sensor is off the table.
| EdgeSensor | ||
| EdgeSensor | () | constructor |
public function EdgeSensor(shape:Shape)Creates a sensor with the given shape
Parametersshape:Shape |
See also
| getReading | () | method |
public override function getReading():voidDetermine if the sensor is on the table and set the output port accordingly: LOW if the sensor is on the table and HIGH if the sensor is off the table.
See also