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.
28 lines
560 B
28 lines
560 B
/* |
|
dummy backend barometer. Used during board bringup. Selected using |
|
BARO line in hwdef.dat |
|
*/ |
|
#pragma once |
|
|
|
#include "AP_Baro_Backend.h" |
|
|
|
#ifndef AP_BARO_DUMMY_ENABLED |
|
#define AP_BARO_DUMMY_ENABLED AP_BARO_BACKEND_DEFAULT_ENABLED |
|
#endif |
|
|
|
#if AP_BARO_DUMMY_ENABLED |
|
|
|
class AP_Baro_Dummy : public AP_Baro_Backend |
|
{ |
|
public: |
|
AP_Baro_Dummy(AP_Baro &baro); |
|
void update(void) override; |
|
static AP_Baro_Backend *probe(AP_Baro &baro) { |
|
return new AP_Baro_Dummy(baro); |
|
} |
|
|
|
private: |
|
uint8_t _instance; |
|
}; |
|
|
|
#endif // AP_BARO_DUMMY_ENABLED
|
|
|