mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 14:13:42 -04:00
4d24aa43db
useful for board bringup
14 lines
243 B
C++
14 lines
243 B
C++
#include "AP_Baro_Dummy.h"
|
|
|
|
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);
|
|
}
|