CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/Blimp/sensors.cpp
Views: 1798
1
#include "Blimp.h"
2
3
// return barometric altitude in centimeters
4
void Blimp::read_barometer(void)
5
{
6
barometer.update();
7
8
baro_alt = barometer.get_altitude() * 100.0f;
9
}
10
11