Remove duplicated logic in autotune overshot detection and blackblox
[betaflight.git] / docs / Sonar.md
blob38f02da18c545048baa87e80668148222e805b39
1 # Sonar
3 A sonar sensor can be used to measure altitude for use with BARO and SONAR altitude
4 hold modes.
6 The sonar sensor is used instead of the pressure sensor (barometer) at low altitudes.
7 The sonar sensor is only used when the aircraft inclination angle (attitude) is small.
9 ## Hardware
11 Currently the only supported sensor is the HCSR04 sensor.
13 ## Connections
15 ### Naze/Flip32+
17 | Mode          | Trigger       | Echo          | Inline 1k resistors |
18 | ------------- | ------------- | ------------- | ------------------- |
19 | Parallel PWM  | PB8 / Motor 5 | PB9 / Motor 6 | NO (5v tolerant)    |
20 | PPM/Serial RX | PB0 / RC7     | PB1 / RC8     | YES (3.3v input)    |
22 Current meter cannot be used in conjunction with Parallel PWM and Sonar.
24 ### Olimexino
26 | Trigger       | Echo          | Inline 1k resistors |
27 | ------------- | ------------- | ------------------- |
28 | PB0 / RC7     | PB1 / RC8     | YES (3.3v input)    |
30 Current meter cannot be used in conjunction with sonar.