The barometer and its role
Barometers provide height information that helps in the accurate control and navigation of a drone. Basically, atmospheric pressure is measured by barometers since air pressure decreases as the altitude increases, and this informs the flight controller of how high it has ascended.
With regard to altitude control, the drone flight controller uses barometer data to estimate the present altitude above sea level. This allows the flight controller to calculate the vertical position of a drone precisely.
The barometer data are fused with other sensors, such as accelerometers and gyroscopes. Thus, it is possible to observe the sensor values in the IMU part of the flight controller. The following two barometers—Bosch Sensortec BMP280 and BMP388—are mostly used in drone flight controllers; they are known to establish co-operation with the IMU that enables a more thorough measurement of data concerning the control of altitude, navigation, and stability...