From c3d98f15ed006edde9355f6df33b8a022f7dbe59 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sat, 6 Apr 2019 19:55:49 +0200 Subject: [PATCH] Battery is int. --- server/nightr/strategies/miloStrats.py | 1 - server/nightr/util.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/server/nightr/strategies/miloStrats.py b/server/nightr/strategies/miloStrats.py index 3d03666..a6aee42 100644 --- a/server/nightr/strategies/miloStrats.py +++ b/server/nightr/strategies/miloStrats.py @@ -12,7 +12,6 @@ def camImgStrat(context : Context) -> Prediction: """ img = context.image average = img.mean() - print(img.mean()) p = Prediction() p.weight = 0.7 if average < 100: diff --git a/server/nightr/util.py b/server/nightr/util.py index ce7d143..6c70643 100644 --- a/server/nightr/util.py +++ b/server/nightr/util.py @@ -9,7 +9,7 @@ import numpy as np @dataclass class Context: - battery: float = 1.0 + battery: int = 100 position: Dict[str, float] = field(default_factory=lambda: {'latitude': 53.0, 'longitude': 9.0}) image: np.ndarray = None