ardupilot/libraries/AP_Baro/AP_Baro_HIL.h

27 lines
541 B
C
Raw Normal View History

/// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
2011-10-13 11:22:03 -03:00
#ifndef __AP_BARO__HIL_H__
#define __AP_BARO__HIL_H__
#include "AP_Baro.h"
class AP_Baro_HIL : public AP_Baro
2011-10-13 11:22:03 -03:00
{
private:
float Temp;
float Press;
float _pressure_sum;
float _temperature_sum;
volatile uint8_t _count;
public:
2012-10-11 14:53:21 -03:00
bool init();
uint8_t read();
float get_pressure();
float get_temperature();
void setHIL(float altitude_msl);
void setHIL(float pressure, float temperature);
2011-10-13 11:22:03 -03:00
};
#endif // __AP_BARO__HIL_H__