|
|
|
@ -2,10 +2,14 @@
@@ -2,10 +2,14 @@
|
|
|
|
|
|
|
|
|
|
#include "Tracker.h" |
|
|
|
|
|
|
|
|
|
void Tracker::init_barometer(void) |
|
|
|
|
void Tracker::init_barometer(bool full_calibration) |
|
|
|
|
{ |
|
|
|
|
gcs_send_text(MAV_SEVERITY_INFO, "Calibrating barometer"); |
|
|
|
|
barometer.calibrate(); |
|
|
|
|
if (full_calibration) { |
|
|
|
|
barometer.calibrate(); |
|
|
|
|
} else { |
|
|
|
|
barometer.update_calibration(); |
|
|
|
|
} |
|
|
|
|
gcs_send_text(MAV_SEVERITY_INFO, "Barometer calibration complete"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|