Skip to content

Commit

Permalink
Fixed an issue where currents were not recorded
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo committed Sep 14, 2023
1 parent f999ccc commit dd331b8
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 @@ -321,7 +321,8 @@ def do_calibration(self, arg):

#Iterating starting at -1 amps to 0 amps.
for current_val in range(max_current, min_current - step, step):
current_val = self.psu.set_current_limit(i, current_val)
self.psu.set_current_limit(i, current_val)
current_val = self.psu.return_current(i)
mag_x, mag_y, mag_z = self.arduino.get_magnetometer_reading().split(",")
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)
Expand Down

0 comments on commit dd331b8

Please sign in to comment.