You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
272 B
24 lines
272 B
5 years ago
|
#include "Baro.h"
|
||
|
|
||
5 years ago
|
namespace sensor_simulator::sensor
|
||
|
{
|
||
|
|
||
5 years ago
|
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;
|
||
|
}
|