mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-02 13:27:32 +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 */
|
/* decrement offset until adc reading is over a threshold */
|
||||||
void booz2_analog_baro_calibrate(void) {
|
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)
|
if (booz2_analog_baro_value_filtered == 0)
|
||||||
booz2_analog_baro_offset -= 15;
|
booz2_analog_baro_offset -= 15;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user