Sonar sensor
More...
|
|
const int | BufferSize = 30 |
| |
|
void | Reset () |
| |
|
void | SetMode () |
| |
|
bool | Initialise () |
| |
| byte[] | ReadRegister (byte register) |
| | Reads a 8 byte register from the sensor More...
|
| |
| byte[] | ReadRegister (byte register, byte rxLength) |
| | Reads a register from the sensor More...
|
| |
| void | WriteRegister (byte register, byte data) |
| | Writes a byte to a register. More...
|
| |
|
void | WriteRegister (byte register, byte[] data) |
| |
| byte[] | WriteAndRead (byte register, byte[] data, int rxLength) |
| | Write and read an array of bytes to the sensor More...
|
| |
|
byte | I2CAddress = 0x00 |
| |
|
const int | NumberOfSensorPorts = SensorManager.NumberOfSensorPorts |
| |
|
SensorPort | port |
| |
|
I2CMode | mode |
| |
| MonoBrickFirmware.Sensors.NXTUltraSonicSensor.NXTUltraSonicSensor |
( |
SensorPort |
port | ) |
|
|
inline |
Initializes a new instance of the MonoBrick.NXT.Sonar class in centimeter mode
Initializes a new instance of the MonoBrick.NXT.Sonar class.
- Parameters
-
| void MonoBrickFirmware.Sensors.NXTUltraSonicSensor.Continuous |
( |
| ) |
|
|
inline |
Do Continuous measurements
| override string MonoBrickFirmware.Sensors.NXTUltraSonicSensor.GetSensorName |
( |
| ) |
|
|
inlinevirtual |
| override int MonoBrickFirmware.Sensors.NXTUltraSonicSensor.NumberOfModes |
( |
| ) |
|
|
inlinevirtual |
| void MonoBrickFirmware.Sensors.NXTUltraSonicSensor.Off |
( |
| ) |
|
|
inline |
Turn off the sonar to save power
| override string MonoBrickFirmware.Sensors.NXTUltraSonicSensor.ReadAsString |
( |
| ) |
|
|
inlinevirtual |
| float MonoBrickFirmware.Sensors.NXTUltraSonicSensor.ReadDistance |
( |
| ) |
|
|
inline |
Read the distance in either centiinches or centimeter
| new void MonoBrickFirmware.Sensors.NXTUltraSonicSensor.Reset |
( |
| ) |
|
|
inline |
| override string MonoBrickFirmware.Sensors.NXTUltraSonicSensor.SelectedMode |
( |
| ) |
|
|
inlinevirtual |
| override void MonoBrickFirmware.Sensors.NXTUltraSonicSensor.SelectNextMode |
( |
| ) |
|
|
inlinevirtual |
| override void MonoBrickFirmware.Sensors.NXTUltraSonicSensor.SelectPreviousMode |
( |
| ) |
|
|
inlinevirtual |
| void MonoBrickFirmware.Sensors.NXTUltraSonicSensor.SingleShot |
( |
| ) |
|
|
inline |
Gets or sets the sonar mode.
The sonar mode
The documentation for this class was generated from the following file:
- Sensors/NXTUltraSonicSensor.cs