# General Configuration

It's recommended to use USB connection instead of wireless telemetry connection for the steps below.

{% embed url="<https://www.youtube.com/watch?v=h67RtzKW6a4&feature=emb_title>" %}

First of all, connect to the flight controller using the links management menu in the top-right corner. Then, click the gear icon in the left side of the toolbar: flight controller settings will appear.

## General

The general tab provides major information about the hardware you're using, installed firmware version, and unique ID of the flight controller.

![](/files/-MTPndCPWoo2L4-rOmHm)

## Airframe

The airframe tab allows you to configure your vehicle type.

![](/files/-MTPndCJDxoRmNu0SY8D)

Click `AIRFRAME` and choose your airframe from the list. If you can’t see your airframe there – feel free to [contact us](https://sky-drones.com/contact-us) and we’ll add your specific airframe type for you.

![](/files/-MTPndCIADn6WWgZrSb0)

Channel mapping and propeller rotations are shown on the corresponding images.

### System Orientation

You can choose the desired orientation of the flight controller and GNSS module from corresponding orientation menus.

![](/files/-MTPndCRQ3W7L3HpzPFD)

### Landing Gear

SmartAP allows you to configure automatic control of retractable landing gear. Simply select the output channel where your servo is connected to and adjust the minimum/maximum values as you desire. You may apply reverse if needed.

### Motors IDLE Speed

If you want the motors slightly spinning when the system is armed you can set motors IDLE speed to the desired value.

![](/files/-MTPndCQ1Xzk3xWmsszA)

## Radio

Go to the `RADIO` tab and choose the RC receiver protocol corresponding to the one you’re using. SBUS or PPM receivers are recommended. This change will take effect after the system is has been reset. Therefore, you will need to reboot the autopilot and connect again if you have made such changes so as to ensure the changes are applied immediately.

![](/files/-MTPndCWnVp6FNiGn0ps)

Go to `Settings` > `RADIO` and make sure that your RC radio is turned on. You’ll see the sposition of the sticks displayed. Press the`CALIBRATE` button and move all sticks to their end points. Switch off the radio.

![](/files/-MTPndCVyznOfpi-l18b)

When it’s done – press the STOP button to stop calibration and save parameters. You can remap any action to the desired channel and apply reverse if needed.

![](/files/-MTPndCUAD39sb3zDOy0)

## Sensors

Sensors configuration tab allows users to perform accelerometer, gyroscope and magnetometer calibrations which are very important for heightened flight performance.

![](/files/-MTPndCaHcxS974VzjZ6)

### Accelerometer Calibration

Click the`CALIBRATE` button near accelerometer data. Click `START` and follow the instructions shown after the procedure has begun.

![](/files/-MTPndCXPCMlb-7vi7hz)

For accelerometer calibration you’ll have to place the autopilot in 6 positions:

* Top side up
* Top side down
* Left side down
* Front side down
* Right side down
* Rear side down

{% hint style="info" %}
It’s highly important to hold the system still in each position during the calibration. In each step the axis should be aligned with g-acceleration vector as precise as possible.
{% endhint %}

### Gyroscope Calibration

Click the `CALIBRATE` button near gyroscope data. Keep the board vert still and click `START.` Follow the instructions shown once the procedure has begun.

![](/files/-MTPndCZAg_dkYMY10wh)

### Magnetometer

Magnetometer calibration is highly important for precise position hold and autonomous flight modes. Make sure that you’re outdoors and don’t have any metals around you or in your pockets (e.g. keys, cell phones, etc) before calibration.&#x20;

Press `CALIBRATE` near magnetometer data and follow further instructions. You will need to rotate the vehicle around three major axes (roll, pitch, yaw). After 60 seconds, the magnetometer calibration will be automatically completed and the pop-up calibration message will disappear.

![](/files/-MTPndC_jhcCkKu7zvxU)

### GNSS Configuration

{% hint style="info" %}
Make sure that the GPS module is connected to the autopilot before proceeding to this step. Also, make sure that the green LED indicating power supply of the module is solid green (NOT flashing)
{% endhint %}

The sensors tab allows users to configure the GNSS module with the default parameters and messages required to work in unison with SmartAP Autopilots. Click the`CONFIGURE` button near GNSS data. Click `CONFIGURE` in the new window again and configuration changes will take an effect after system reboot.

![](/files/-MTPndCYPS-uHGhpAJvZ)

## Battery

Set battery sensor type. The system supports several battery sensors, including:

* Generic power module
* SmartAP PDB
* SmartAP 3.x internal monitoring&#x20;
* Custom

![](/files/-MTPndCKxzLLS8m8IUb2)

Set battery cells number and capacity. The system will notify you when the charge is too low.

If you're using a custom sensor then select `Custom` and provide the scalers for voltage and current. The scale value can be calculated as follows:

SCALE VALUE = SENSOR RANGE / 4096

## Tuning

SmartAP Autopilot is based on P-PID control algorithm. It means that the stabilization (the ability to stay in the air) and navigation (the ability to follow a desired trajectory) control algorithms include two loops: angle and rates control and position and velocity control. By default the gains (PIDs) are set to be the average for the majority of airframes, configurations, etc. Of course the parameters can be tuned precisely for better flight performance.

![](/files/-MTPndCblDtdyXfXtGub)

Here is a brief guide for PID tuning:

1. Set all values to default.&#x20;
2. It's very important to tune the stabilization loop as precisely as possible since navigation is based on stabilization, so if not done properly, the vehicle will not hover and fly waypoints as precisely as you might like.&#x20;
3. The most important parameters are Stabilization Rate Roll / Pitch. Increase it until you see high-frequency oscillations or decrease it if you can already see them. Normally, this value is in between 0.1 – 0.2 depending on your airframe size, motors, ESC, props and vibration levels.&#x20;
4. If you can see low-frequency oscillations – it means that your Stabilization Angle Roll / Pitch is too high and you need to decrease it. This value lays in range between 3 - 6.&#x20;

Navigation gains can be tuned using the same approach, however, this is not essential as the values are fine by default for the majority of vehicle types.

More information on default gains is available in the [Standard PID Presets](https://github.com/aviaks/Sky-Drones-Docs/tree/35fe35ced3e791ceb7e3ce50c0fc08a880876b97/configuration/standard-pid-presets/README.md) section of this documentation.

## Control

Control tab allows users to manual configure control sensitivity, horizontal and vertical speed limits in various modes, and failsafe actions.

![](/files/-MTPndCOq6PZlI6Ksrru)

## OSD

The OSD tab provides settings for On-Screen Display module configuration.

![](/files/-MTPndCSy44WTHl28UtC)

In OSD settings you can:

* Enable / disable the OSD module&#x20;
* Select either metric or imperial units depending on your preference
* Narrow the overlay area to fit the information on the screen
* Choose specific parameters you would like to be shown

OSD supports both PAL and NTSC video standards with auto-detection and selection. A typical information layout is shown on the images below:

PAL Layout

![](/files/-MTPndBxbDE5_WcJh3RZ)

NTSC Layout

![](/files/-MTPndBwOQ6fWn5MduWq)

The actual layout on the screen typically looks as follows:

![](/files/-MTPndBzDAYvCTe1XjHf)

![](/files/-MTPndBy1QPEGp-XfWTM)

## Camera

The camera tab allows you to configure the camera gimbal and shutter control settings.&#x20;

![](/files/-MTPndCNftV8fXI7_HAw)

`Gimbal`: the system supports 3-axis gimbal stabilization with flexible configuration for minimum and maximum output angles as well as minimum and maximum raw output values on the physical layer (PWM is used). As an option, the output can be reversed.

![](/files/-MTPndCLgidN6jC8tSwn)

`Shutter`: shutter configuration has settings for minimum and maximum output values for the triggering pulse. Interval is the length of time the pulse should be in an active state to initiate the shutter of the camera to trigger.

![](/files/-MTPndCMfTjJq49gvQ4C)

## Parameters

The parameters tab gives you direct access to all parameters available in the system.

![](/files/-MTPndCTyp2qOBcgaStt)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sky-drones.com/avionics/legacy-autopilots/general-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
