Skid Steering Rover Motor Test Failure

Hello Everyone,
I am a novice buiding a rover using dc motor in skid steering mode. Following are the components used:

  1. Pixhawk 2 with here GPS
  2. normal DC motor
  3. Pololu TReX Jr driver
    The servox_function are set properly.
    Channel 1 and 3 of the driver Pololu connected to motor output 1 and 3 respectively. Pixhawk configurations done.

Issue:

  1. During motor test, on pressing “test motor C” with a 35% percent around throttle, both the motors start to rotate( only left motor is expected to rotate)
    And on spinning “test motor D”, however we increase the PWM, no motor moves(right motor is expected to rotate)
  2. Rover is only moving forward/backward on ground. No right/left movement can be achieved.

Is this the issue of the POLOLU driver? I have tried with LM298 also but with no success.

Can you please help me in this regard?

Regards

I believe you need to remove the channel mix jumper from the controller and connect the pixhawk to channel 1 and 2, it’s currently mixing the inputs as it thinks they are throttle and steering rather than left and right.

To set the pixhawk to tank steering you need to set the outputs to left and right motors rather than throttle and ground steering.
0J112.1200

https://ardupilot.org/rover/docs/rover-motor-and-servo-configuration.html

1 Like

Thank you very much for your kind reply.

Actually I followed whatever was given in the motor and servo connection page diagram for skid steering (3 jumpers in pace and channel 1 and 3 connected to Pixhawk main servo out 1 and 3 respectively).

I will try as per your suggestion and return to you on Monday.

Thanking you,
Best Regards

And just information, do I need to change the SERVOX_ FUNCTION?
Like I followed previously
SERVO1_ FUNCTION -73
SERVO3_ FUNCTION -74

thats correct, 73 and 74 are left and right motor output.

I forgot it defaults to outputs 1 and 3 on ardurover rather than 1 and 2.

Yes…thanks…coming back to u tomorrow after testing…
I will send u a detailed report about wheel rotation with the jumper on and off…

Good afternoon. Please note todays results.

With the said jumper removed,
Pixhawk Main Out 1 connected to channel 1 & Pixhawk Main Out 3 connected to channel 3 and the Servo1_Function= 73 and Servo3_Function= 74, during motor test:
Test Motor C was spinning the desired motor but with Test Motor D, there was no response from the other wheel.

While again with the said jumper removed,
Pixhawk Main Out 1 connected to channel 1 & Pixhawk Main Out 2 connected to channel2 and the Servo1_Function= 73 and Servo2_Function= 74, (ans with some servo function reversed) during motor test:
Test Motor C as well as Test Motor D was spinning the desired motors in the desired direction. While in transmitter, while moving up the throttle channel, both the wheels were moving forward proportionately. And with roll channel, the two wheels were moving in opposite direction causing the turn.

Is this really obeying the skid steering principal? I believe in this part of the documentation, some changes may be brought about and it can be made more specific for novice users like me.
Waiting for your reply.
With Regards,
Moloy

1 Like

That’s sounds correct. Both the same way with throttle and opposite with yaw.

I prefer to switch the motor wires to reverse it rather than doing it in software so forward is forward.