Configuration and Setup¶
1) Connections, Firmware and Calibration¶
Refer to autopilot system assembly instructions for making connections between the autopilot board and each of these components:
Power Module
ESC/Motor Drive
Motors
Wheel Encoders
RC Receiver
GPS(optional)
Telemetry(optional)
Install GCS (Mission Planner recommended) and upload rover firmware, if ArduPilot firmware already is installed, or Loading Firmware onto boards without existing ArduPilot firmware (first time only)
Perform all the hardware calibration steps for:
RC Mode Setup (Add Manual and Acro Modes)
2) Motor, ESC, Wheel Encoder Configuration¶
Follow the instructions to setup skid steering drive
Configure motor drive/ESC type for brushed motors or brushless motors
Verify connections and settings using the motor test tool
Configure wheel encoders
3) Additional Parameter Configuration¶
The following parameters must be set to these specified values:
FRAME_CLASS = 3 (For firmware to recognize vehicle as Balance Bot)
MOT_SLEWRATE = 0 (Do not account for motor slew)
FS_CRASH_CHECK = 1 (Enable Crash Check)
4) Minimum Throttle¶
Many motors and ESCs have a dead zone. This is the zone between the zero throttle value and the throttle value at which the motor starts to move. This can be compensated by setting minimum throttle in the firwamre.
Tip
Remove wheels before proceeding
To fix the dead zone, open the motor test window in Mission Planner, as mentioned here. Find the minimum throttle value at which the motor turns on and set the parameter MOT_THR_MIN to that value. Now the motor should start at 1% throttle.
5) Arming¶
The vehicle must be armed for the wheels to start moving. Check the rover arming page for more details.
Warning
This is simply an arming test. The vehicle will have to be tuned before it is ready to run.
Tip
Remove wheels before proceeding.
Set a transmitter switch for arming. Ensure the channel used for the switch has been calibrated. To configure a channel for arming, for example channel 7, then set the parameter:
RC7_OPTION =41 (Sets function of channel 7 as arming/disarming)
Connect the battery. Connect the autopilot board to GCS via USB or telemetry.
Keep the vehicle upright and then arm it. If arming is not successful check the error message on the GCS and identify the problem from the rover arming page.
After the vehicle arms, pitch it forward and back manually(Use hands, not the RC transmitter). The motors must turn in the direction of pitch.
Proceed to the Control Modes and tuning section if the above steps were successful.