The NXTBrick type exposes the following members.
Constructors
Methods
Name | Description | |
---|---|---|
![]() | ClearSensor | Overloaded. |
![]() | Connect |
Connect to NXT brick.
|
![]() | Disconnect |
Disconnect from Lego NXT brick.
|
![]() | Finalize |
Destroys the instance of the NXTBrick class.
(Overrides Object..::.Finalize()()().) |
![]() | GetBatteryPower |
Get battery power of NXT brick.
|
![]() | GetDeviceInformation |
Get information about NXT device.
|
![]() | GetMotorState |
Get motor state.
|
![]() | GetSensorValue |
Get sensor's values.
|
![]() | GetUltrasonicSensorsValue |
Read value of ultrasonic distance sensor.
|
![]() | GetVersion |
Get firmware version of NXT brick.
|
![]() | IsAlive |
Check if the NXT brick is alive and responds to messages.
|
![]() | LsGetStatus |
Get status of Low Speed bus.
|
![]() | LsRead |
Read data from Low Speed bus.
|
![]() | LsWrite | Overloaded. |
![]() | PlayTone | Overloaded. |
![]() | ReadHiTechnicAccelerationTiltSensor |
Read data from HiTechnic acceleration/tilt sensor. The HiTechnic accelerometer/tilt sensor measures acceleration in
three axes. It measures also tilt along each axis. Using the sensor, you can measure the acceleration of your robot in the range
of -2g to 2g.
|
![]() | ReadHiTechnicColorSensor |
Read data from HiTechnic color sensor (also color sensor v2).
|
![]() | ReadHiTechnicCompassSensor |
Read data from HiTechnic compass sensor.
|
![]() | ResetMotorPosition | Overloaded. |
![]() | SendCommand |
Send command to Lego NXT brick and read reply.
|
![]() | SetBrickName |
Set name of NXT device.
|
![]() | SetMotorState | Overloaded. |
![]() | SetSensorMode | Overloaded. |
Properties
Name | Description | |
---|---|---|
![]() | IsConnected |
Check if connection to NXT brick is established.
|
Events
Name | Description | |
---|---|---|
![]() | MessageRead |
The event is raised every time a command is read successfully.
|
![]() | MessageSent |
The event is raised every time a command is sent successfully.
|