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.
25 lines
500 B
25 lines
500 B
#pragma once |
|
|
|
#include "AP_Baro_Backend.h" |
|
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_QFLIGHT |
|
|
|
#include <AP_HAL_Linux/qflight/qflight_buffer.h> |
|
|
|
class AP_Baro_QFLIGHT : public AP_Baro_Backend |
|
{ |
|
public: |
|
AP_Baro_QFLIGHT(AP_Baro &); |
|
void update(); |
|
|
|
private: |
|
DSPBuffer::BARO *barobuf; |
|
uint8_t instance; |
|
float pressure_sum; |
|
float temperature_sum; |
|
uint32_t sum_count; |
|
uint32_t last_check_ms; |
|
|
|
void timer_update(); |
|
}; |
|
|
|
#endif // CONFIG_HAL_BOARD_SUBTYPE
|
|
|