From 3953b2cff872284986aa69d08471e4e07826d980 Mon Sep 17 00:00:00 2001 From: Eddasol Date: Thu, 12 Dec 2024 08:18:18 +0100 Subject: [PATCH] Introduce battery state to battery payload --- src/robot_interface/telemetry/payloads.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/robot_interface/telemetry/payloads.py b/src/robot_interface/telemetry/payloads.py index a90a1ac6..fee320b6 100644 --- a/src/robot_interface/telemetry/payloads.py +++ b/src/robot_interface/telemetry/payloads.py @@ -1,11 +1,12 @@ from dataclasses import dataclass from datetime import datetime -from typing import List +from typing import List, Optional from alitra import Pose from transitions import State from robot_interface.models.mission.status import RobotStatus +from robot_interface.models.robots.battery_state import BatteryState @dataclass @@ -30,6 +31,7 @@ class TelemetryPosePayload(TelemetryPayload): @dataclass class TelemetryBatteryPayload(TelemetryPayload): battery_level: float + battery_state: Optional[BatteryState] = None @dataclass