Moderators: roger, 99jonathan, imaqine
I had no idea about the encoder to prevent overloading.
kirkpthompson wrote:I don't think I implemented the NXTMMX's timed control in the class (and there was probably a good reason for that). Let me review the code and re-post.
kirkpthompson wrote:If you characterize your mechanics, you may be able to use time-based control of your motors. e.g.: 100 (i just picked an arbitrary number) milliseconds [more or less] under x power moves the steering all the way to one side. Stop applying power because we assume it has reached it's goal. Rinse, repeat.
/**
* turns speed regulation on and off for tacho and time methods. forwards
* and backwards are not affected because if its off they just wont work.
*
*/
public void regulateSpeed(boolean controlSpeed) {
this.controlSpeed = controlSpeed;
}Users browsing this forum: No registered users and 1 guest