small bugfix

This commit is contained in:
Robin Müller 2022-08-17 17:25:16 +02:00
parent d2144aab26
commit 75c28cc7e5
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814

View File

@ -154,7 +154,7 @@ def perform_mgm_calibration(pw: PrintWrapper, mgm_tuple: Tuple):
)
if len(mgm_tuple) != 3:
pw.dlog(f"MGM tuple has invalid length {len(mgm_tuple)}")
mgm_list = [mgm / 10e6 for mgm in mgm_tuple]
mgm_list = [mgm / 1e6 for mgm in mgm_tuple]
command = (
f"magnetometer_field {mgm_list[0]} {mgm_list[1]} {mgm_list[2]}\n".encode()
)