mirror of https://github.com/ArduPilot/ardupilot
18 lines
304 B
C++
18 lines
304 B
C++
#include "AP_Baro_Dummy.h"
|
|
|
|
#if AP_BARO_DUMMY_ENABLED
|
|
|
|
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);
|
|
}
|
|
|
|
#endif // AP_BARO_DUMMY_ENABLED
|