5
0
mirror of https://github.com/ArduPilot/ardupilot synced 2025-01-06 07:58:28 -04:00
ardupilot/Blimp/sensors.cpp
2021-09-17 14:07:14 +10:00

10 lines
177 B
C++

#include "Blimp.h"
// return barometric altitude in centimeters
void Blimp::read_barometer(void)
{
barometer.update();
baro_alt = barometer.get_altitude() * 100.0f;
}