Motor and Servo Configuration¶
This page describes the few parameters that should be set in order to support the steering and throttle method being used. This page is closely related to the Motor and Servo Connections page which describes the physical connections between the flight controller, motors and servos.
Separate Steering and Throttle¶
For separate steering and throttle vehicles these parameters values should be set (they should actually be set by default):
If using the mission planner, the Initial Setup >> Mandatory Hardware >> Servo Output page is a convenient way to do this
For “Skid steering” vehicles (like R2D2) these parameters values will need to be set:
In Rover-3.1 (and earlier), skid steering output was enabled by setting the SKID_STEER_OUT parameter to “1”.
Motor Driver Types¶
At least three different Motor Driver (aka ESC) types are supported which allows using ArduPilot with most motor drivers. The MOT_PWM_TYPE parameter should be used to ensure the output from the flight controller board matches the input required by the motor driver.
- “Normal” is the most common and involves sending PWM values normally between 1000 and 2000 (1ms ~ 2ms)
- “Brushed With Relay” is for brushed motor drivers that use a relay pin to indicate whether it should rotate forwards or backwards.
- “Brushed BiPolar” is for brushed motor drivers that, a bit like “Normal” pwm interpret a low PWM values for reverse, a high PWM value for forward
Some ESCs support three “Running Models”:
- Forward with brake
- Forward and reverse with brake
- Forward and Reverse
For Rover to have full and straight forward control of the throttle it is best to set the “Running Model” to the 3rd option, “Forward and Reverse”. An ESC programming card compatible with the ESC can normally be used to change the ESC’s configuration.
Testing Motor direction¶
The Mission Planner (and perhaps other GCSs) can be used to test the direction of the motors:
- plug in the vehicle’s battery and place the vehicle on a stand so that its wheels can move freely
- connect with the Mission Planner using USB or telemetry radio
- go to the Initial Setup >> Optional Hardware >> Motor Test page
- increase the “Throttle %” to 20
- push the “Test motor” buttons to test the steering and motors.
- for rovers with separate steering and throttle, pushing the the “Test motor A” button should cause the wheels to turn forward, “Test motor B” should cause steering to turn right.
- for rovers with skid steering, “Test motor C” should cause the left wheel to turn forward. “Test motor D” should cause the right wheel to turn forward.
- If the motors or steering do not move in the correct direction change the appropriate
SERVOx_REVERSEDvalue and try again.
- if a “command rejected” message appears or the motors or steering do not respond to the test, the cause may be written in the Mission Planner’s Flight Data >> Messages tab (see bottom left of window). Common causes included the radio calibration has not been performed or the
SERVOx_FUNCTIONparameters have not been set correctly.