Use of "nMaxRegulatedSpeed12V"
Page 1 of 1

Author:  FTC Participant [ Wed Dec 11, 2013 4:32 pm ]
Post subject:  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;

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group