Skip to content

Commit

Permalink
att_hist: return current attitude instead of None on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Jun 15, 2014
1 parent 1174286 commit c6336d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/attitude_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def update(self):

# get_attitude - get attitude at given time
def get_attitude(self, desired_time_in_sec):
# return immediately if dictionary is empty
# return current attitude immediately if dictionary is empty
if len(self.att_dict) == 0:
return None
return self.vehicle.attitude

# get times from dict
keys = sorted(self.att_dict.keys())
Expand Down

0 comments on commit c6336d4

Please sign in to comment.