Skip to content

Commit

Permalink
magnetorquer now updates its own state NOT wheel speeds
Browse files Browse the repository at this point in the history
  • Loading branch information
kulovac committed Aug 19, 2024
1 parent 3c3529a commit de7cb60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ADCS/adcs_subsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ def get_wheel_speed(self) -> tuple[float, float, float]:

def set_magnetorquer_current(self, current_x, current_y, current_z):
"""Sets the magnetorquer current in mA"""
self.wheel_speed.x = float(current_x)
self.wheel_speed.y = float(current_y)
self.wheel_speed.z = float(current_z)
self.magnetic_current.x = float(current_x)
self.magnetic_current.y = float(current_y)
self.magnetic_current.z = float(current_z)

def get_magnetorquer_current(self) -> tuple[float, float, float]:
"""Gets the wheel speeds in RPM"""
return (self.wheel_speed.x, self.wheel_speed.y, self.wheel_speed.z)
return (self.magnetic_current.x, self.magnetic_current.y, self.magnetic_current.z)

def set_current(self, currents_x, currents_y, currents_z):
"""Sets the magnetorquer currents in mA"""
Expand Down

0 comments on commit de7cb60

Please sign in to comment.