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.OutPort Class Reference

Output port. More...

Inheritance diagram for NXT.OutPort:
NXT.Component

Public Member Functions

 OutPort (Robot _robot)
 The constructor.
 
void Update ()
 Update the output port state.
 
void ResetMotorPosition (bool relative)
 Reset motor position (absolute/relative)
 
- 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

int TachoCount [get]
 Number of counts since the last reset of the motor counter.
 
int BlockTachoCount [get]
 Current position relative to last programmed movement
 
int RotationCount [get]
 Current position relative to last reset of the rotation sensor.
 
int PowerSetpoint [get, set]
 Power setpoint.
 
OutputMode Mode [get, set]
 Output mode.
 
NXT.RegulationMode RegulationMode [get, set]
 Regulation mode.
 
int TurnRatio [get, set]
 Turn ratio.
 
NXT.RunState RunState [get, set]
 Run state.
 
int TachoLimit [get, set]
 Tacho limit.
 

Additional Inherited Members

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

Detailed Description

Output port.

Constructor & Destructor Documentation

NXT.OutPort.OutPort ( Robot  _robot)

The constructor.

Member Function Documentation

void NXT.OutPort.ResetMotorPosition ( bool  relative)

Reset motor position (absolute/relative)

void NXT.OutPort.Update ( )

Update the output port state.

Member Data Documentation

int NXT.OutPort.Number = 0

Port number.

Property Documentation

int NXT.OutPort.BlockTachoCount
get

Current position relative to last programmed movement

OutputMode NXT.OutPort.Mode
getset

Output mode.

int NXT.OutPort.PowerSetpoint
getset

Power setpoint.

NXT.RegulationMode NXT.OutPort.RegulationMode
getset

Regulation mode.

int NXT.OutPort.RotationCount
get

Current position relative to last reset of the rotation sensor.

NXT.RunState NXT.OutPort.RunState
getset

Run state.

int NXT.OutPort.TachoCount
get

Number of counts since the last reset of the motor counter.

int NXT.OutPort.TachoLimit
getset

Tacho limit.

int NXT.OutPort.TurnRatio
getset

Turn ratio.


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