<!-- TITLE: Avionics -->
<!-- SUBTITLE: MipFly One internals -->
# Basics
The avionics submenu of MipFly One allows for the fine-tuning of different algorithms running in the background either on the OS part of the system or on the real-time hardware. In the following paragraph, the functioning of these algorithms and the influence of each configurable parameters will be explained.
![Avionics](/uploads/screenshots/avionics.png "Avionics"){.align-center}
Fig. 1 Avionics menu
# IGC Name
Set IGC naming mode. STD for name with date and location and COMP for competition naming with pilot name.
# TurnOff a. land
Automatic turn off vario after landing has been detected.
# Glide
The glide value is the theoretical glide used for task data approximation. Generally, it should be lower than the theoretical maximum glide of your wing. Best way to determine it is to observe the instant glide you get while flying. Wind is taken into consideration for the determination of the arrival height at a certain point. If you are constantly arriving at WP with a hier altitude you should consider increasing this value. If you are arriving with a lower altitude you should consider decreasing it.
# Trim Speed
The trim speed is the average speed used during a task or during a casual flight (if only waypoint navigation is employed). Wind speed and trim speed is taken into account when different task parameters are computed.
# Set num. samples
The set num. samples menu lets you input the number of pressure samples that the standard firmware uses to compute vertical speed and altitude. 201 samples are fetched every second, so a setting of 201 will represent an average of 1 second, 401 an average of 2 seconds etc. Please note that this value has no influence on the real-time (instant) variometer based on acceleration. Although this feature takes advantage of the dual pressure sensors employed by MipFly One, this algorithm is certainly slower than the instant vario and is only used in conjunction with other sensors.
Please note that **OK** has to be pressed in order for the data to be saved and sent to the real-time hardware.
# Set vario average
This is the value, in seconds, used for the average climb/sink. It can be used to determine the actual climb in a thermal or sink in a translation and compare it with the rest of the day. The recommended value is about the time needed to make 2 thermal turns.
# Wind
The wind algorithm is based on a circular regression (circle fit to a set of data points) algorithm applied to the XY speeds determined from the course and ground speed. To drop out data that can result is an erroneous determination two conditions have to be met:
* a certain course change was performed in the measurement window (also called data spread)
* The RMS error of the circle fit is less than a predetermined value
## Wind num. readings
This value represents how big is the history of speed-course values to be considered. You should note that there are 5 readings made every second. Increasing this value may also require to increase the value of RMS in order to compensate for the larger dataset.
**Recommended 200**
2nd option 500
## Wind num average
This value represents the number of distinct measurements taken into account to make a wind approximation.
**Recommended 40**
2nd option 10
## Wind data spread
Wind data spread value represents the minimum data spread value for which the dataset is considered for wind determination. This is used to ignore values resulted from a linear flight and only take into account values from turns or thermalling. A turn of 180 degrees will usually generate a data spread of about three times the glider speed.
**Recommended 80**
2nd option 90
## Wind RMS error
This is the limit value for a fit to be considered adequate. For example, if during the turn you will modify your speed, the points on the XY speed graph will no longer fit a circle, resulting in a big RMS error.
**Recommended 3.5 - 4** for Wind num readings of 200
2nd option 4.0
# Glide num. average
This menu is used to set the number of values used to compute the average glide. Please note that one sample is taken every 200 ms, so that there are a total of 5 samples in one second.
# Thermaling detect
This menu is used to set and enable automatic switch to [Thermal assistant](widgets#thermal-assist) from other pages. If enable, when climb and turn are detected it switch. Instead when glider doens't turn and climb it swtich to previous page
## Detect ON - Detect OFF
Activate/Deactivate thermaling detector
## Saturation
Saturation value. Used to limit maximum turn integral to facilitate deactivation. **Recommended 150**.
## Decay
Decay value. Each unit is equivalent to 5 deg/sec decay. Increasing this value will require a tighter turn to actually increase the integral value. Decreasing it too much will result in a lockdown in thermalling mode unless a perfect line is described during the flight with no heading variations. **Recommended 1.0-1.3**
## Activate Threshold
Threshold that will trigger an activate event. **Recommended 80**.
## Deactivate Threshold
Threshold that will trigger an deactivate event. **Recommended 50**
# Raw log
This option can be used to enable raw logging. Raw logging logs all the sensor data during a flight enabling a perfect reconstitution of the flight. Because raw logs take a lot of space (as GPS data is logged 5 times a second and vario data 10 times a second) only the log for the latest flight is keep on the device. If you want this file either for you or to provide it to us for analysis please back it up from your SDCard. File location is on the **MIPFLY** partition with the name **raw.log**.