RobotLib  1
A set of software wrappers for Rovio, Roomba and NXT robots written in C#.
 All Classes Namespaces Functions Variables Enumerations Properties Pages
Public Member Functions | Public Attributes | Properties | List of all members
NXT.InPort Class Reference

Input port. More...

Inheritance diagram for NXT.InPort:
NXT.Component

Public Member Functions

 InPort (Robot _robot)
 The constructor.
 
void Update ()
 Update the sensor state.
 
void ResetScaledValue ()
 Reset the scaled value.
 
- Public Member Functions inherited from NXT.Component
 Component (Robot _robot)
 The constructor.
 

Public Attributes

int Number = 0
 Port number.
 
- Public Attributes inherited from NXT.Component
bool AutoUpdate = true
 Automatic update option for methods requesting more than one piece of information.
 

Properties

SensorMode SensorMode [get, set]
 Sensor mode.
 
SensorType SensorType [get, set]
 Sensor type.
 
int RawADValue [get]
 Raw reading value.
 
int ScaledADValue [get]
 Scaled reading value.
 
short ScaledValue [get]
 Scaled sensor value.
 
short CalibratedValue [get]
 Calibrated value.
 

Additional Inherited Members

- Protected Attributes inherited from NXT.Component
Robot robot
 The robot class, accessible by all dervied classes.
 

Detailed Description

Input port.

Constructor & Destructor Documentation

NXT.InPort.InPort ( Robot  _robot)

The constructor.

Member Function Documentation

void NXT.InPort.ResetScaledValue ( )

Reset the scaled value.

void NXT.InPort.Update ( )

Update the sensor state.

Member Data Documentation

int NXT.InPort.Number = 0

Port number.

Property Documentation

short NXT.InPort.CalibratedValue
get

Calibrated value.

int NXT.InPort.RawADValue
get

Raw reading value.

int NXT.InPort.ScaledADValue
get

Scaled reading value.

short NXT.InPort.ScaledValue
get

Scaled sensor value.

SensorMode NXT.InPort.SensorMode
getset

Sensor mode.

SensorType NXT.InPort.SensorType
getset

Sensor type.


The documentation for this class was generated from the following file: