MonoBrick EV3 Firmware
|
Class for the EV3 ultrasonic sensor More...
Public Member Functions | |
EV3UltrasonicSensor (SensorPort port) | |
Initializes a new instance of the EV3 Ultrasonic Sensor. More... | |
EV3UltrasonicSensor (SensorPort port, UltraSonicMode mode) | |
Initializes a new instance of the EV3 Ultrasonic Sensor. More... | |
override string | ReadAsString () |
Reads the sensor value as a string. More... | |
int | Read () |
Read the sensor value. Result depends on the mode More... | |
override string | GetSensorName () |
Gets the name of the sensor. More... | |
override void | SelectNextMode () |
Selects the next mode. More... | |
override void | SelectPreviousMode () |
Selects the previous mode. More... | |
override int | NumberOfModes () |
Numbers the of modes. More... | |
override string | SelectedMode () |
.m.-, More... | |
Public Member Functions inherited from MonoBrickFirmware.Sensors.UartSensor | |
UartSensor (SensorPort port) | |
Properties | |
UltraSonicMode | Mode [get, set] |
Gets or sets the Gyro mode. More... | |
Properties inherited from MonoBrickFirmware.Sensors.UartSensor | |
UARTMode | uartMode [get, set] |
SensorPort | Port [get] |
Properties inherited from MonoBrickFirmware.Sensors.ISensor | |
SensorPort | Port [get] |
Sensor port More... | |
Additional Inherited Members | |
Protected Member Functions inherited from MonoBrickFirmware.Sensors.UartSensor | |
void | Reset () |
byte[] | GetSensorInfo () |
Gets the sensor info based on the mode More... | |
bool | Initialise (UARTMode mode) |
bool | SetMode (UARTMode mode) |
byte | ReadByte () |
byte[] | ReadBytes (int length) |
Protected Attributes inherited from MonoBrickFirmware.Sensors.UartSensor | |
const int | NumberOfSensorPorts = SensorManager.NumberOfSensorPorts |
SensorPort | port |
Class for the EV3 ultrasonic sensor
|
inline |
Initializes a new instance of the EV3 Ultrasonic Sensor.
|
inline |
Initializes a new instance of the EV3 Ultrasonic Sensor.
mode | Mode. |
|
inlinevirtual |
Gets the name of the sensor.
Implements MonoBrickFirmware.Sensors.UartSensor.
|
inlinevirtual |
|
inline |
Read the sensor value. Result depends on the mode
|
inlinevirtual |
Reads the sensor value as a string.
Implements MonoBrickFirmware.Sensors.UartSensor.
|
inlinevirtual |
|
inlinevirtual |
Selects the next mode.
Implements MonoBrickFirmware.Sensors.UartSensor.
|
inlinevirtual |
Selects the previous mode.
Implements MonoBrickFirmware.Sensors.UartSensor.
|
getset |
Gets or sets the Gyro mode.
The mode.