Skip to content

Commit

Permalink
implemented some feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Medina committed Jan 11, 2024
1 parent 6ce55d7 commit 3633631
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions paseos/attitude/attitude_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def calculate_disturbance_torque(self):
"""Compute total torque due to user specified disturbances
Returns:
np.array([Tx, Ty, Tz]): total combined torques in Nm
np.array([Tx, Ty, Tz]): total combined torques in Nm expressed in the spacecraft body frame
"""

T = np.array([0.0, 0.0, 0.0])
Expand All @@ -90,13 +90,13 @@ def calculate_disturbance_torque(self):
T += calculate_grav_torque()
if "magnetic" in self._actor.get_disturbances():
T += calculate_magnetic_torque()
# T += np.array([0.0, 0.0001, 0.0]) # test placeholder
return T

def calculate_angular_acceleration(self):
"""Calculate the spacecraft angular acceleration (external disturbance torques and gyroscopic accelerations)"""
# todo: implement geometric model
# TODO implement geometric model
# I = self._actor_moment_of_inertia
# TODO in the future control torques could be added
I = np.array([[50, 0, 0], [0, 50, 0], [0, 0, 50]]) # test placeholder

# Euler's equation for rigid body rotation: a = I^(-1) (T - w x (Iw))
Expand Down
4 changes: 2 additions & 2 deletions paseos/attitude/disturbance_calculations.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# this functions could be implemented inside the attitude model class but I'd rather have it
# separately right now.
"""this file contains functions that return attitude disturbance torque vectors expressed in the actor body frame"""

# OUTPUT NUMPY ARRAYS
# OUTPUT IN BODY FRAME
import numpy as np


Expand Down

0 comments on commit 3633631

Please sign in to comment.