Browse Source

AP_Baro: updates for new AP_Param API

master
Andrew Tridgell 12 years ago
parent
commit
cafeaf91d6
  1. 3
      libraries/AP_Baro/AP_Baro.h

3
libraries/AP_Baro/AP_Baro.h

@ -11,8 +11,11 @@ class AP_Baro
{ {
public: public:
bool healthy; bool healthy;
AP_Baro() { AP_Baro() {
AP_Param::setup_object_defaults(this, var_info);
} }
virtual bool init()=0; virtual bool init()=0;
virtual uint8_t read() = 0; virtual uint8_t read() = 0;
virtual float get_pressure() = 0; virtual float get_pressure() = 0;

Loading…
Cancel
Save