Full constructor.

Namespace: XpressnetLib
Assembly: XpressnetLib (in XpressnetLib.dll) Version: 0.1.4195.39796

Syntax

C#
public LocoInfo(
	int addr,
	bool dir,
	int steps,
	int speed,
	byte fA,
	byte fB,
	bool free
)
Visual Basic
Public Sub New ( _
	addr As Integer, _
	dir As Boolean, _
	steps As Integer, _
	speed As Integer, _
	fA As Byte, _
	fB As Byte, _
	free As Boolean _
)
Visual C++
public:
LocoInfo(
	int addr, 
	bool dir, 
	int steps, 
	int speed, 
	unsigned char fA, 
	unsigned char fB, 
	bool free
)

Parameters

addr
Type: System..::..Int32
Locomotive address
dir
Type: System..::..Boolean
Direction of travel (true = forward)
steps
Type: System..::..Int32
Locomotive decoder speed steps (14/27/28/128)
speed
Type: System..::..Int32
Current locomotive speed (value depends on number of speed steps)
fA
Type: System..::..Byte
Status of function outputs F0-F4 as byte (binary: 0 0 0 F0 F4 F3 F2 F1)
fB
Type: System..::..Byte
Status of function outputs F5-F12 as byte (binary: F12 F11 F10 F9 F8 F7 F6 F5)
free
Type: System..::..Boolean
True if the locomotive is not operated by another Xpressnet device

See Also