mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-21 11:55:41 +08:00
use the flag for custom baro threshold...
This commit is contained in:
@@ -59,7 +59,7 @@ void booz2_analog_baro_init( void ) {
|
||||
|
||||
/* decrement offset until adc reading is over a threshold */
|
||||
void booz2_analog_baro_calibrate(void) {
|
||||
if (booz2_analog_baro_value_filtered < 850 && booz2_analog_baro_offset >= 1) {
|
||||
if (booz2_analog_baro_value_filtered < BOOZ_ANALOG_BARO_THRESHOLD && booz2_analog_baro_offset >= 1) {
|
||||
if (booz2_analog_baro_value_filtered == 0)
|
||||
booz2_analog_baro_offset -= 15;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user