NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
void PosRegSetAngle ( byte  output,
long  angle 
)
inline

Change the current value for set angle.

Make the absolute position regulation going toward the new provided angle. Returns immediately, but keep regulating.

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.
angleNew set position, in degree. The 0 angle corresponds to the position of the motor when absolute position regulation was first enabled. Can be negative. Can be greater than 360 degree to make several turns.
Examples:
ex_PosReg.nxc.