mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 02:13:33 +08:00
MPU9250: Hold off from reboot a little longer. Fixes #7555
This commit is contained in:
@@ -101,7 +101,6 @@ MPU9250_mag::MPU9250_mag(MPU9250 *parent, device::Device *interface, const char
|
|||||||
_mag_scale.z_scale = 1.0f;
|
_mag_scale.z_scale = 1.0f;
|
||||||
|
|
||||||
_mag_range_scale = MPU9250_MAG_RANGE_GA;
|
_mag_range_scale = MPU9250_MAG_RANGE_GA;
|
||||||
_debug_enabled = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MPU9250_mag::~MPU9250_mag()
|
MPU9250_mag::~MPU9250_mag()
|
||||||
|
|||||||
@@ -377,7 +377,7 @@ int MPU9250::reset()
|
|||||||
|
|
||||||
// Hold off sampling for 4 ms
|
// Hold off sampling for 4 ms
|
||||||
state = px4_enter_critical_section();
|
state = px4_enter_critical_section();
|
||||||
_reset_wait = hrt_absolute_time() + 4000;
|
_reset_wait = hrt_absolute_time() + 10000;
|
||||||
|
|
||||||
write_reg(MPUREG_PWR_MGMT_1, BIT_H_RESET);
|
write_reg(MPUREG_PWR_MGMT_1, BIT_H_RESET);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user