2020-01-16 02:51:11 -04:00
|
|
|
#include "AP_Baro_Dummy.h"
|
|
|
|
|
2022-01-26 23:58:56 -04:00
|
|
|
#if AP_BARO_DUMMY_ENABLED
|
|
|
|
|
2020-01-16 02:51:11 -04:00
|
|
|
AP_Baro_Dummy::AP_Baro_Dummy(AP_Baro &baro) :
|
|
|
|
AP_Baro_Backend(baro)
|
|
|
|
{
|
|
|
|
_instance = _frontend.register_sensor();
|
|
|
|
}
|
|
|
|
|
|
|
|
// Read the sensor
|
|
|
|
void AP_Baro_Dummy::update(void)
|
|
|
|
{
|
|
|
|
_copy_to_frontend(0, 91300, 21);
|
|
|
|
}
|
2022-01-26 23:58:56 -04:00
|
|
|
|
|
|
|
#endif // AP_BARO_DUMMY_ENABLED
|