Stuttering motor in Talon RSX

hello, we are having problems regarding the control of the motors. According to the tips they made in my previous post, I’ll do this one trying to detail as much as I can to see if anyone can understand my problem. Before there was no problem, but suddenly the motors connected to the talon RSX controllers started stuttering with commands. When we press continuously, the motor does not act accordingly, running as if we were commanding touches. the strange thing is that this only happens if we put a knob to rotate clockwise, and another one to rotate counterclockwise, so much so that when the knob is programmed to rotate in only one direction, it works fine (the same goes for when the knob is programmed to rotate in one direction, and when not pressed the motor rotates in the other direction by itself). We have already tested the motors with external power, with different speeds and changed the batteries. does anyone have an idea what it is?

If we set it to flow in one direction at the press of a button, and go back on its own when unpressed, it rotates well:


WhatsApp Video 2023-04-06 at 4.08.35 PM

(even if we put it on our robot’s arm, it turns well)
WhatsApp Video 2023-04-06 at 4.09.00 PM (1)

But when we put a simple back and forth command, the problems begin

WhatsApp Video 2023-04-06 at 4.21.38 PM

with a back and forth command it gets even worse on the arm((note that I’m pressing and holding to go forward at one moment, and backward at another):
WhatsApp Video 2023-04-10 at 4.33.32 PM

You cannot command the motor from two different locations at the same time.
They will fight each other giving conflicting commands to the motor.
The motor is being told to go at zero speed and at 40% speed at the same time.

The solution here is to have a single call to MC Set, and cascade the choices.

For example,
Cascade Motor Choices

P.S.
My complements on a good description of the problem you encountered.

3 Likes

Also be aware this gives button 0 (in Mark’s example code) priority over button 1.
If button 0 is pressed then the state of button 1 will be ignored.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.