Hi, I’m working on a rover with PX4 and four DC motors. I used motor drivers and connected them directly to PX4’s main output. I connected the left motor drivers to pin 5 of PX4 and the right motor drivers to pin 7 because pins 1 and 3 didn’t work. I’ve completed calibrations like the radio calibration, but my rover only moves forward. It doesn’t move backward or left or right. I’m trying to set up skid steering and using an Xbox controller, and I’ve confirmed that the controller works. Does anyone know the cause of this issue where the rover only moves forward? If so, please let me know the cause and solution.
To show all your parameters is mabe a good idea.
To which position you placed your throttle stick as mission planner asked you to put it to zero throttle during RC-calibration?
params_rover.param (17.1 KB)
This is my parameter file, and when I press the throttle stick down, the rover keeps moving when I press any button. After calibrating like this, when I lower the throttle, the motors just brake. I want my rover to move backward as well.
Thank you.
What kind of motor controller you have?
If they are using normal PWM input and control forward and reverse on middle position than your SERVO5_TRIM and SERVO7_TRIM is wrong. This is set to minimum and not to center. During radio calibration with mission planner it is necessary to set all sticks also the throttle stick to center.
My motor driver is an H-bridge motor driver, and it has PWM, DIR, and GND inputs. Currently, the PWM is connected to pins 5 and 7 of the Pixhawk, and the DIR and GND are connected together to the Pixhawk’s ground. When I perform calibration with all sticks in the neutral position, the motors don’t move when no input is made, but they move forward when I push the throttle down, and they continue moving forward even when I pull the throttle up. However, when I perform the calibration with the throttle down, the motors keep running without any stick movement, and they stop when I push the throttle down. I want the motors to reverse when I push the throttle down and go forward when I pull the throttle up. Could this issue be related to the connection of the DIR pin of the motor driver? If so, how should the connections be made?
Thank you.
Oh, this is a different configuration.
Can you show a datasheet link or more detailed description of your motor driver.
Did you tested to put the “dir” pin to high. If “dir” stands for direction the motor will turn in oppasite direction.
So this is probably a “brushed with relay” drive and you need an additional output on the FC to control the direction for each motor.
See Brushed Motors — Rover documentation