View unanswered posts | View active topics It is currently Tue Dec 01, 2015 11:44 pm

Reply to topic  [ 2 posts ] 
nMaxRegulatedSpeed question 
Author Message

Joined: Sat Jan 19, 2013 2:09 am
Posts: 6
Post nMaxRegulatedSpeed question
Quick question:
Does nMaxRegulatedSpeed proportionally decrease motor speed?
As in, will
nMaxRegulatedSpeed12V = 500;

run at 50% speed or at 25% speed?

Fri Feb 15, 2013 6:13 pm
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 716
Post Re: nMaxRegulatedSpeed question
The nMaxRegulateSpeed command regulates the maximum encoder counts per second used in the PID algorithm for the LEGO NXT motors; the best resource for this is on our wiki, which can be found here ... er_Control

As you change the value using the nMaxRegulatedSpeed command, you are telling ROBOTC what the maximum encoder counts per second should be used instead of the default of 1000. For instance, setting the nMaxRegulatedSpeed to 750 will result in a motor power command of 50 to spin the wheels at 375 encoder counts (50% of 750) per second.

Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.

Fri Feb 15, 2013 6:45 pm
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.