kopia lustrzana https://github.com/cyoung/stratux
disable "AHRS Info: IMU Calibrations read from settings" log output to prevent from logfile overflow in case of no installed AHRS module
rodzic
aa3c1ed19f
commit
2135bf1cdf
|
@ -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.
|
||||
|
|
Ładowanie…
Reference in New Issue