Battery is int.

This commit is contained in:
Casper 2019-04-06 19:55:49 +02:00
parent 43e2c9628f
commit c3d98f15ed
No known key found for this signature in database
GPG Key ID: 289CA03790535054
2 changed files with 1 additions and 2 deletions

View File

@ -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:

View File

@ -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