Skip to content

Commit

Permalink
Fixed bug with pressure switchovers
Browse files Browse the repository at this point in the history
  • Loading branch information
ayshih committed Jun 19, 2016
1 parent 6ae986a commit cf7b23c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gripspy/housekeeping/gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ def __init__(self, telemetry_file=None, save_file=None):

# Convert pressure to millibars
self.pressure = pressure_low * 0.327 - 10.76
self.pressure[pressure_mid < 3165] = pressure_mid * 0.032 - 1.29
self.pressure[pressure_high < 3383] = pressure_high * 0.003 - 0.149
use_mid = pressure_mid < 3165
self.pressure[use_mid] = pressure_mid[use_mid] * 0.032 - 1.29
use_high = pressure_high < 3383
self.pressure[use_high] = pressure_high[use_high] * 0.003 - 0.149

print("Total packets: {0}".format(count))
else:
Expand Down

0 comments on commit cf7b23c

Please sign in to comment.