ardupilot/libraries/AP_Baro/AP_Baro_BMP085_hil.h

30 lines
571 B
C
Raw Normal View History

2011-10-13 11:22:03 -03:00
#ifndef __AP_BARO_BMP085_HIL_H__
#define __AP_BARO_BMP085_HIL_H__
#include "AP_Baro.h"
class AP_Baro_BMP085_HIL
2011-10-13 11:22:03 -03:00
{
private:
uint8_t BMP085_State;
2011-12-11 00:30:24 -04:00
int16_t Temp;
int32_t Press;
2011-10-13 11:22:03 -03:00
public:
AP_Baro_BMP085_HIL(); // Constructor
2011-10-13 11:22:03 -03:00
//int Altitude;
uint8_t oss;
2011-12-11 00:30:24 -04:00
void init(AP_PeriodicProcess * scheduler);
uint8_t read();
int32_t get_pressure();
int16_t get_temperature();
float get_altitude();
int32_t get_raw_pressure();
int32_t get_raw_temp();
void setHIL(float Temp, float Press);
int32_t _offset_press;
2011-10-13 11:22:03 -03:00
};
#endif // __AP_BARO_BMP085_HIL_H__