From 65466790d27626bdfb1b824ebd03ff85a9616673 Mon Sep 17 00:00:00 2001 From: Michael Arthur Date: Wed, 2 Oct 2024 13:52:45 +1300 Subject: [PATCH] fix default device config for operation settings --- pymammotion/data/model/device_config.py | 7 ++++--- pyproject.toml | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pymammotion/data/model/device_config.py b/pymammotion/data/model/device_config.py index 9c5dadd..99ebf92 100644 --- a/pymammotion/data/model/device_config.py +++ b/pymammotion/data/model/device_config.py @@ -23,21 +23,22 @@ class OperationSettings(DataClassORJSONMixin): is_dump: bool = True is_edge: bool = False collect_grass_frequency: int = 10 - job_mode: int = 0 # taskMode + job_mode: int = 4 # taskMode job_version: int = 0 job_id: int = 0 speed: float = 0.3 ultra_wave: int = 2 # touch no touch etc - channel_mode: int = 0 # line mode is grid single double or single2 + channel_mode: int = 0 # grid or border first channel_width: int = 25 rain_tactics: int = 0 blade_height: int = 0 path_order: str = "" toward: int = 0 # is just angle - toward_included_angle: int = 0 + toward_included_angle: int = 90 toward_mode: int = 0 # angle type relative etc border_mode: int = 1 # border laps obstacle_laps: int = 1 + mowing_laps: int = 1 start_progress: int = 0 areas: list[int] = field(default_factory=list) diff --git a/pyproject.toml b/pyproject.toml index 412be91..2f3fd86 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "pymammotion" -version = "0.2.57" +version = "0.2.58" [tool.poetry] name = "pymammotion" -version = "0.2.57" +version = "0.2.58" license = "GNU-3.0" description = "" readme = "README.md" @@ -61,7 +61,7 @@ mypy = "^1.11.2" autotyping = "^24.3.0" [tool.bumpver] -current_version = "0.2.57" +current_version = "0.2.58" version_pattern = "MAJOR.MINOR.PATCH" commit_message = "Bump version {old_version} -> {new_version}" commit = true