Skip to content

Commit

Permalink
Fixed for loop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo committed Sep 14, 2023
1 parent 9bacb0c commit f999ccc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oresat_helmholtz/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ def do_calibration(self, arg):
for current_val in range(max_current, min_current - step, step):
current_val = self.psu.set_current_limit(i, current_val)
mag_x, mag_y, mag_z = self.arduino.get_magnetometer_reading().split(",")
csv_writer.writerow(current_val, mag_x, mag_y, mag_z)
dict_to_write = {'Current (A)': current_val, 'Magnetic Field X (T)': mag_x, 'Magnetic Field Y (T)':mag_y,'Magnetic Field Z (T)':mag_z}
csv_writer.writerow(dict_to_write)

#Setting X, Y and Z bridges to positive polarity.
if i == 'X':
Expand Down

0 comments on commit f999ccc

Please sign in to comment.