View unanswered posts | View active topics It is currently Thu Aug 13, 2020 2:06 pm

Reply to topic  [ 1 post ] 
Use of "nMaxRegulatedSpeed12V" 
Author Message

Joined: Wed Dec 11, 2013 3:37 pm
Posts: 12
Post Use of "nMaxRegulatedSpeed12V"
So we're trying to make use of the motor encoder that we've attached to a motor that controls an arm on our robot. We have a 12V Tetrix motor attached to a HiTechnic Motor Controller.

The nMotorEncoder value consistently reads correctly and works in programs. However, we attempted to use the "nMaxRegulatedSpeed12V = x" command that we found here. This appears to do nothing to the maximum speed of the arm. As I understand it to work, it sets a maximum speed, in encoder counts per second, that the arm will not exceed, where 1440 encoder counts is a single revolution of the motor. However, even absurdly low values (we started at 500, then dropped to 200, then 100, then 50, then 1) for this command have not yielded a noticeable difference in the speed of the arm.

Here's really the only relevant code I have to show:

nMotorPIDSpeedCtrl[Shoulder] = mtrSpeedReg;
nMaxRegulatedSpeed12V = 1;

Wed Dec 11, 2013 4:32 pm
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest

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.