Browse Source

sensors/vehicle_magnetometer: reduce offset update message length to fit

release/1.12
Daniel Agar 4 years ago committed by GitHub
parent
commit
bf330a51b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/modules/sensors/vehicle_magnetometer/VehicleMagnetometer.cpp

2
src/modules/sensors/vehicle_magnetometer/VehicleMagnetometer.cpp

@ -207,7 +207,7 @@ void VehicleMagnetometer::MagCalibrationUpdate() @@ -207,7 +207,7 @@ void VehicleMagnetometer::MagCalibrationUpdate()
state_variance(axis_index) = fmaxf(state_variance(axis_index) * (1.f - kalman_gain), 0.f);
}
PX4_INFO("%d (%d) est. offset %d committed: [%.3f %.3f %3f]->[%.3f %.3f %.3f] (full [%.3f %.3f %.3f])",
PX4_INFO("%d (%d) est. offset %d committed: [%.2f %.2f %.2f]->[%.2f %.2f %.2f] (full [%.2f %.2f %.2f])",
mag_index, _calibration[mag_index].device_id(), i,
(double)_calibration[mag_index].offset()(0), (double)_calibration[mag_index].offset()(1),
(double)_calibration[mag_index].offset()(2),

Loading…
Cancel
Save