NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void OnFwdReg ( byte  outputs,
char  pwr,
byte  regmode 
)
inline

Run motors forward regulated.

Run the specified outputs forward using the specified regulation mode.

Parameters
outputsDesired output ports. Can be a constant or a variable, see Output port constants. If you use a variable and want to control multiple outputs in a single call you need to use a byte array rather than a byte and store the output port values in the byte array before passing it into this function.
pwrOutput power, 0 to 100. Can be negative to reverse direction.
regmodeRegulation mode, see Output port regulation mode constants.
Examples:
ex_onfwdreg.nxc.