mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
21 lines
234 B
C++
21 lines
234 B
C++
#include "Baro.h"
|
|
|
|
Baro::Baro(Ekf* ekf):Sensor(ekf)
|
|
{
|
|
}
|
|
|
|
Baro::~Baro()
|
|
{
|
|
}
|
|
|
|
void Baro::send(uint32_t time)
|
|
{
|
|
_ekf->setBaroData(time,_baro_data);
|
|
_time_last_data_sent = time;
|
|
}
|
|
|
|
void Baro::setData(float baro)
|
|
{
|
|
_baro_data = baro;
|
|
}
|