Fill TC_M0_ID in offboard thermal calibration script (#26290)

This commit is contained in:
Tarmo Tänav 2026-01-24 01:47:27 +01:00 committed by GitHub
parent 9460625c99
commit e2864e521f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1138,6 +1138,8 @@ if num_mags >= 1:
if not math.isnan(sensor_mag_0['temperature'][0]):
mag_0_params['TC_M0_ID'] = int(np.median(sensor_mag_0['device_id']))
# find the min, max and reference temperature
mag_0_params['TC_M0_TMIN'] = np.amin(sensor_mag_0['temperature'])
mag_0_params['TC_M0_TMAX'] = np.amax(sensor_mag_0['temperature'])