mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-12 14:17:34 +08:00
Change folder name
This commit is contained in:
committed by
Mathieu Bresciani
parent
b9dd1e54c5
commit
00cd720a66
@@ -0,0 +1,23 @@
|
||||
#include "Baro.h"
|
||||
|
||||
namespace sensor_simulator::sensor
|
||||
{
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user