mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 00:54:06 +08:00
28 lines
324 B
C++
28 lines
324 B
C++
#include "baro.h"
|
|
|
|
namespace sensor_simulator
|
|
{
|
|
namespace sensor
|
|
{
|
|
|
|
Baro::Baro(std::shared_ptr<Ekf> ekf):Sensor(ekf)
|
|
{
|
|
}
|
|
|
|
Baro::~Baro()
|
|
{
|
|
}
|
|
|
|
void Baro::send(uint64_t time)
|
|
{
|
|
_ekf->setBaroData(time,_baro_data);
|
|
}
|
|
|
|
void Baro::setData(float baro)
|
|
{
|
|
_baro_data = baro;
|
|
}
|
|
|
|
} // namespace sensor
|
|
} // namespace sensor_simulator
|