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.
27 lines
490 B
27 lines
490 B
12 years ago
|
/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
||
|
|
||
|
#ifndef __AP_BARO_PX4_H__
|
||
|
#define __AP_BARO_PX4_H__
|
||
|
|
||
|
#include "AP_Baro.h"
|
||
|
|
||
|
class AP_Baro_PX4 : public AP_Baro
|
||
|
{
|
||
|
public:
|
||
|
bool init();
|
||
|
uint8_t read();
|
||
|
float get_pressure();
|
||
|
float get_temperature();
|
||
|
int32_t get_raw_pressure();
|
||
|
int32_t get_raw_temp();
|
||
|
|
||
|
private:
|
||
|
float _temperature;
|
||
|
float _pressure;
|
||
|
|
||
|
// ORB subscription handle
|
||
|
int _baro_sub;
|
||
|
};
|
||
|
|
||
|
#endif // __AP_BARO_PX4_H__
|