mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Added PG config definitions 1
This commit is contained in:
parent
90393d5a12
commit
0bca49d8c4
12 changed files with 281 additions and 79 deletions
|
@ -44,6 +44,16 @@
|
|||
|
||||
baro_t baro; // barometer access functions
|
||||
|
||||
PG_REGISTER_WITH_RESET_TEMPLATE(barometerConfig_t, barometerConfig, PG_BAROMETER_CONFIG, 0);
|
||||
|
||||
PG_RESET_TEMPLATE(barometerConfig_t, barometerConfig,
|
||||
.baro_hardware = 1,
|
||||
.baro_sample_count = 21,
|
||||
.baro_noise_lpf = 0.6f,
|
||||
.baro_cf_vel = 0.985f,
|
||||
.baro_cf_alt = 0.965f
|
||||
);
|
||||
|
||||
#ifdef BARO
|
||||
|
||||
static uint16_t calibratingB = 0; // baro calibration = get new ground pressure value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue