Skip to content

Commit

Permalink
mekkaod formula
Browse files Browse the repository at this point in the history
  • Loading branch information
saniaxxx committed Jul 8, 2020
1 parent 01f2ccd commit 26501fe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions heartsStep.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 27,7 @@ def execute(self):
self.manageActor()

def recountCollecting(self):
a = - 76.923
b = 7538.561
k = (a * float(self.temperature) b) / 1000
k = min(k, 1) if k > 0 else 0
self.collectingSpeed = int(self.initialCollecting) * k
self.collectingSpeed = int(self.initialCollecting)*(6.04 - 0.06*float(self.temperature))

def updateAndCheckTemperature(self):
self.temperature = float(self.get_sensor_value(int(self.temperatureSensor)))
Expand Down

0 comments on commit 26501fe

Please sign in to comment.