APM configuration before the first flight

Words
672
Reading
3 min
Listen
Play
8y

IMG_20180430_115752.jpg

What Will I Learn?

  • You will learn how to set up APM before the first flight
  • You will learn how to tuning APM
  • You will learn how to get logs from the APM

Requirements

  • Your copter (quad, hexa, octo etc.)
  • Computer
  • USB cable

Difficulty

Basic

Setting up before the first flight

  • Download and install latest Mission Planner
  • Connect your APM to the computer via USB cable and open Mission Planner. Go to Initial Setup -> Install Firmware, select the appropriate software for your device and install it

0.png

  • Select appropriate USB port for your APM (it should apear as Arduino Mega 2560), baud speed (115200) and click Connect

jeden.png

  • Go to Initial Setup -> Wizard and select your frame type, then click Next

3.png

  • Select your frame layout

4.png

  • Calibrate your accelerometer. Accuracy is highly recommended in here, beacuse APM will base on this calibration while leveling. Press Start and place vechicle on the positions which are given in the pictures

5.png

  • Check if you got Done comunicat. If not, you have to repeat calibration process

7.png

  • Calibrate your compass using Live calibration. I recommend to do this process outside, to avoid interference from metal objects

8.png

  • Rotate your copter in all axis and try to aim for the white dots, this will allow APM to collect samples. Continue this process until you receive a positive message

9.png

  • Select your power module (if you have one) and your battery capacity

10.png

  • Select your sonar (if you have one)

11.png

  • Turn on your transmitter and make sure it is bounded to the receiver, then click Continue

12.png

  • Click Calibrate radio and move rods to their extreme positions

13.png

14.png

  • Make sure that this parameter is not above 2. If so, repeat radio calibration

15.png

  • Configure Flight modes. You can select them by changing channel 5 on your transmitter.
    During the first flights you will need only 3 modes:
  1. Stabilize - uses gyroscope and accelerometer to automatically level the copter, provides almost full control for the pilot
  2. AltHold - additionaly uses a barometer to keep the altitude
  3. Loiter - additionaly uses a gps to keep copter's position

16.png

  • Next window veryfies your settings. You can pass Pre-Arm test by connecting battery and arming your copter (hold the throttle down, and rudder right for 5 seconds).

17.png

  • Failsafes protect your copter from uexpected situations:
  1. Battery - triggers when battery voltage is below the set level
  2. Ground station - triggers when receiver loses connection with transmitter
  3. Throttle - triggers when PWM on channel 3 is below the set level (you can adjust it below)

You can also select copter reaction when Failsafe triggers:

  1. RTL - copter will automatically return to the place where it started
  2. Land - copter will automatically land in the place where it is now

18.png

  • Geofence protects your copter from escaping in case of lose control. It may be very useful during the first flights. You can adjust its parameters and select taken action when geofence triggers

19.png

  • It is everything, you copter is ready to take its first flight!

20.png

Tuning APM

You can additionaly change a few parameters, this may improve some functions of the APM. Go to Config/Tuning -> Full Parameter List and serach for parameters:

21.png

  • INS_MPU6K_FILTER change 0 to 20 - makes barometer more resistant to vibrations

22.png

  • THR_ACCEL_I change 1 to 1,5 - eliminates the effect of losing height

23.png

  • THR_ACCEL_P change 0,5 to 0,75 - eliminates the effect of losing height

24.png

  • THR_RATE_P change 5 to 8 - eliminates the effect of losing height

25.png

Save changes by clicking Write Params.

Getting logs

Sometimes it is very useful to get data from the last flights to get information about issues, errors or strange copter behavior.

  • Go to Flight data -> DataFlash Logs

26.png

  • Select Download DataFlash Log Via Mavlink

27.png

  • Select logs that you want to download and click Download Selected Logs

28.png

  • When download is complete you can close the window and go back to DataFlash Logs. You can automatically analyse log using Auto Analysis or you can review it manually using Reviev a Log

29.png

Thank you for reading. Hope this tutorial will be helpful.

APM configuration before the first flight | Ecency