disable "AHRS Info: IMU Calibrations read from settings" log output to prevent from logfile overflow in case of no installed AHRS module

pull/827/merge^2
VirusPilot 2019-06-23 14:38:04 +02:00
rodzic aa3c1ed19f
commit 2135bf1cdf
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -162,8 +162,8 @@ func sensorAttitudeSender() {
// Set sensor gyro calibrations
if c, d := &globalSettings.C, &globalSettings.D; d[0]*d[0]+d[1]*d[1]+d[2]*d[2] > 0 {
s.SetCalibrations(c, d)
log.Printf("AHRS Info: IMU Calibrations read from settings: accel %6f %6f %6f; gyro %6f %6f %6f\n",
c[0], c[1], c[2], d[0], d[1], d[2])
// log.Printf("AHRS Info: IMU Calibrations read from settings: accel %6f %6f %6f; gyro %6f %6f %6f\n",
// c[0], c[1], c[2], d[0], d[1], d[2])
} else {
// Do an initial calibration
select { // Don't block if cal isn't receiving: only need one calibration in the queue at a time.