[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
NqcSetPower
The speed can be 0 (slowest) to and including 7 (fastest). The robot will move at speed zero.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
NqcSetPower
(NQC) SetPower
Function to change the speed of a motor.//Syntax SetPower( [Motor], [Speed] );
The speed can be 0 (slowest) to and including 7 (fastest). The robot will move at speed zero.
task main()
{
//Set speed of motor A to 2
SetPower(OUT_A, 2);
//Make motor A to get this speed
OnFwd(OUT_A);
}
Code links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
