NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void PosRegSetMax ( byte  output,
byte  max_speed,
byte  max_acceleration 
)
inline

Set maximum limits.

Set maximum speed and acceleration.

Warning
This function requires the enhanced NBC/NXC firmware version 1.31+
Parameters
outputDesired output port. Can be a constant or a variable, see Output port constants.
max_speedMaximum speed, or 0 to disable speed limiting.
max_accelerationMaximum acceleration, or 0 to disable acceleration limiting. The max_speed parameter should not be 0 if this is not 0.
Examples:
ex_PosReg.nxc.