Skip to content

Commit

Permalink
Introduce battery state to battery payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddasol committed Dec 12, 2024
1 parent 593e4c7 commit 3953b2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/robot_interface/telemetry/payloads.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -30,6 +31,7 @@ class TelemetryPosePayload(TelemetryPayload):
@dataclass
class TelemetryBatteryPayload(TelemetryPayload):
battery_level: float
battery_state: Optional[BatteryState] = None


@dataclass
Expand Down

0 comments on commit 3953b2c

Please sign in to comment.