Skip to content

Commit ae677f3

Browse files
committed
IMPROVEMENT: Andy Piper fix to tempcal script
1 parent 990cd1e commit ae677f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ardupilot_methodic_configurator/tempcal_imu.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def correction(self, coeff: dict, imu: int, temperature: float, axis: str, cal_t
119119

120120
def correction_accel(self, imu: int, temperature: float) -> Vector3:
121121
"""
122-
calculate accel correction from temperature calibration from
122+
Calculate accel correction from temperature calibration from
123123
log data using parameters.
124124
"""
125125
cal_temp = self.atcal.get(imu, TEMP_REF)
@@ -131,7 +131,7 @@ def correction_accel(self, imu: int, temperature: float) -> Vector3:
131131

132132
def correction_gyro(self, imu: int, temperature: float) -> Vector3:
133133
"""
134-
calculate gyro correction from temperature calibration from
134+
Calculate gyro correction from temperature calibration from
135135
log data using parameters.
136136
"""
137137
cal_temp = self.gtcal.get(imu, TEMP_REF)
@@ -366,7 +366,7 @@ def IMUfit( # noqa: PLR0915, N802, pylint: disable=too-many-locals, too-many-br
366366
stype = m.group(2)
367367
p = int(m.group(3))
368368
axis = m.group(4)
369-
if stop_capture[imu]:
369+
if stop_capture[imu] or c.enable[imu] == 2:
370370
continue
371371
if stype == "ACC":
372372
c.set_acoeff(imu, axis, p, msg.Value / SCALE_FACTOR)

0 commit comments

Comments
 (0)