View unanswered posts | View active topics It is currently Sat Nov 01, 2014 10:10 am






Reply to topic  [ 2 posts ] 
nMaxRegulatedSpeed question 
Author Message
Rookie

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

run at 50% speed or at 25% speed?


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

Joined: Thu May 24, 2012 12:15 pm
Posts: 598
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 http://www.robotc.net/wiki/NXT_Motors_a ... 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 Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Fri Feb 15, 2013 6:45 pm
Profile
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:  
cron



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