Skip to content

Commit

Permalink
Fixed nadir velocitiy axis computation
Browse files Browse the repository at this point in the history
  • Loading branch information
acpaquette committed Nov 25, 2024
1 parent 5605b49 commit 2683960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ale/base/data_naif.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def frame_chain(self):
# from the driver
trans_x = np.array(list(spice.gdpool('INS{}_ITRANSL'.format(self.ikid), 0, 3)))

if (trans_x[0] < trans_x[1]):
if (trans_x[1] < trans_x[2]):
velocity_axis = 1

quats = [spice.m2q(spice.twovec(-p_vec[i], 3, v_vec[i], velocity_axis)) for i, time in enumerate(times)]
Expand Down

0 comments on commit 2683960

Please sign in to comment.