Battery is int.
This commit is contained in:
parent
43e2c9628f
commit
c3d98f15ed
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user