Skip to content

Commit 769f35f

Browse files
authored
feat(map): plan V1 dynamic element page updates (#1010)
1 parent 109f433 commit 769f35f

5 files changed

Lines changed: 988 additions & 2 deletions

File tree

‎roborock/data/v1/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1+
from .dynamic_map import *
12
from .v1_clean_modes import *
23
from .v1_code_mappings import *
34
from .v1_containers import *
4-
from .v1_dynamic_map import *
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
"""Wire models for the V1 dynamic map diff commands.
1+
"""Wire models for incremental updates to V1 vacuum maps.
2+
3+
A full map is a snapshot of the floor plan, cleaning path, and robot position.
4+
Dynamic map commands report changes since that snapshot so a client can fetch
5+
the changed parts and keep the displayed path and position current during a
6+
clean, without downloading the whole map each time. The client falls back to
7+
a full map when incremental updates cannot be applied.
28
39
These dataclasses describe the JSON results of ``get_dynamic_map_diff`` and
410
``get_dynamic_data`` after ordinary command-response decoding, plus the

0 commit comments

Comments
 (0)