mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 15:04:38 +08:00
Initialize mag scaling with reasonable defaults
This commit is contained in:
committed by
Lorenz Meier
parent
6aa8fcdf53
commit
8351afdca8
@@ -664,6 +664,10 @@ calibrate_return mag_calibrate_all(orb_advert_t *mavlink_log_pub)
|
||||
for (unsigned cur_mag=0; cur_mag<max_mags; cur_mag++) {
|
||||
if (device_ids[cur_mag] != 0) {
|
||||
struct mag_calibration_s mscale;
|
||||
mscale.x_scale = 1.0;
|
||||
mscale.y_scale = 1.0;
|
||||
mscale.z_scale = 1.0;
|
||||
|
||||
#if !defined(__PX4_QURT) && !defined(__PX4_POSIX_RPI) && !defined(__PX4_POSIX_BEBOP)
|
||||
int fd_mag = -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user