Ich schätze die habe ich schon... Die Installation ist 2 Stunden alt.
pi@cassandra:~/CaSSAndRA$ git pull
Already up to date.
pi@cassandra:~/CaSSAndRA$ git pull
Already up to date.
Nein, das ist die neuste, du musst die von heute Morgen nehmenIch schätze die habe ich schon... Die Installation ist 2 Stunden alt.

Ja, das Popup erscheint und im Hintergrund verschwindet die rote, berechnete Markierung.In dem Moment wo du auf Speichern drückst und Popup auftaucht, verschwindet der rote Pfad in der Karte?
Ich habe etliche Neustarts gemacht. Gerade noch einmal bewusst ohne das es funktioniert.Musst du mal neustarten, egentlich ist der Fehler schon längst behoben
Ich hatte eine alte Version, die ich komplett gelöscht habe. Die neue Version ist mittels git clone installiert.Oder das Update hat nicht funktioniert
Desktop, aber mit Smartphone funktioniert es auch nicht.Smartphone oder Desktop?
from icecream import ic
ic(context)
ic(context_triggered)
ic(current_task.preview)
2023-10-25 08:30:37 INFO Performing get state http-request
2023-10-25 08:30:37 INFO TX: AT+S,0x13
2023-10-25 08:30:38 INFO RX: S,25.37,5.22,-52.44,-2.62,1,2,0,0.18,2,5.50,-52.28,0.02,36,-0.01,19,-871964,-0.02,-1,0,0x66
2023-10-25 08:30:40 INFO Performing get state http-request
2023-10-25 08:30:40 INFO TX: AT+S,0x13
2023-10-25 08:30:40 INFO RX: S,25.37,5.22,-52.44,-2.62,1,2,0,0.94,2,5.50,-52.28,0.02,37,-0.01,23,-871964,-0.02,-1,0,0x66
ic| context: 'dropdown-tasks-order'
ic| context_triggered: [{'prop_id': 'dropdown-tasks-order.value', 'value': None},
{'prop_id': 'modal-save-current-task.is_open', 'value': False},
{'prop_id': 'modal-remove-selected-task.is_open', 'value': False}]
2023-10-25 08:30:42 INFO Performing get state http-request
2023-10-25 08:30:42 INFO TX: AT+S,0x13
ic| current_task.preview: Empty DataFrame
Columns: []
Index: []
ic| context: 'dropdown-tasks-order'
ic| context_triggered: [{'prop_id': 'dropdown-tasks-order.value', 'value': None}]
ic| current_task.preview: Empty DataFrame
Columns: []
Index: []
2023-10-25 08:30:43 INFO RX: S,25.38,5.22,-52.44,-2.62,1,2,0,0.76,2,5.50,-52.28,0.02,38,-0.01,23,-871964,-0.02,-1,0,0x68
2023-10-25 08:30:45 INFO Performing get obstacles http-request
2023-10-25 08:30:45 INFO Backend: TX AT+S2,0x45
2023-10-25 08:30:46 INFO Backend: RX S2,0,0xe1
2023-10-25 08:30:46 INFO Performing get state http-request
2023-10-25 08:30:46 INFO TX: AT+S,0x13
2023-10-25 08:30:46 INFO RX: S,25.38,5.22,-52.44,-2.62,1,2,0,0.10,2,5.50,-52.28,0.03,38,-0.01,25,-871964,-0.02,-1,0,0x5f
2023-10-25 08:30:49 INFO Performing get state http-request
2023-10-25 08:30:49 INFO TX: AT+S,0x13
2023-10-25 08:30:49 INFO RX: S,25.38,5.22,-52.44,-2.62,1,2,0,0.74,2,5.50,-52.28,0.02,38,-0.01,25,-871964,-0.02,-1,0,0x68
2023-10-25 08:30:51 INFO Performing get state http-request
2023-10-25 08:30:51 INFO TX: AT+S,0x13
2023-10-25 08:30:52 INFO RX: S,25.38,5.22,-52.44,-2.62,1,2,0,0.51,2,5.50,-52.28,0.02,37,-0.01,24,-871964,-0.02,-1,0,0x61
ic| context: 'button-confirm-selection'
ic| context_triggered: [{'prop_id': 'button-confirm-selection.n_clicks', 'value': 1}]
ic| current_task.preview: Empty DataFrame
Columns: []
Index: []
2023-10-25 08:30:52 INFO Check for selection and create a new perimter if there
2023-10-25 08:30:52 INFO Selection lasso detected. Create a new perimeter with lasso select.
2023-10-25 08:30:52 INFO Backend: Planning route:
2023-10-25 08:30:52 INFO PathPlannerCfg(pattern='lines', width=0.18, angle=0, distancetoborder=2, mowarea=True, mowborder=0, mowexclusion=True, mowborderccw=True)
2023-10-25 08:30:52 INFO Rover start position: [5.22, -52.44]
2023-10-25 08:30:52 INFO Backend: Turning shapely figure: Point Angle: 0
2023-10-25 08:30:52 INFO Backend: Turning shapely figure: Polygon Angle: 0
2023-10-25 08:30:52 INFO Backend: Create map borders and area to mow
2023-10-25 08:30:52 INFO Backend: Calc route for cutedge
2023-10-25 08:30:52 INFO Coverage path planner (planing route for cut to edge): Calculation finished
2023-10-25 08:30:52 INFO Backend: Create line mask
2023-10-25 08:30:52 INFO Coverage path planner (lines): Start coverage path planner
2023-10-25 08:30:52 INFO Coverage path planner (lines): Route is just start point, check if the point within perimeter
2023-10-25 08:30:52 INFO Coverage path planner (lines): New start point: [(-1.6756201003860922, -27.198617486985327)]
2023-10-25 08:30:53 INFO Coverage path planner (calc lines): Starting loop
2023-10-25 08:30:53 INFO Coverage path planner (calc lines): No more way to calculate, ending loop
2023-10-25 08:30:53 INFO Backend: Turning shapely figure: LineString Angle: 0
2023-10-25 08:30:54 INFO Performing get state http-request
2023-10-25 08:30:54 INFO TX: AT+S,0x13
2023-10-25 08:30:55 INFO RX: S,25.38,5.22,-52.44,-2.62,1,2,0,0.17,2,5.50,-52.28,0.02,38,-0.01,24,-871964,-0.02,-1,0,0x64
2023-10-25 08:30:57 INFO Performing get state http-request
2023-10-25 08:30:57 INFO TX: AT+S,0x13
2023-10-25 08:30:57 INFO RX: S,25.38,5.22,-52.44,-2.62,1,2,0,0.93,2,5.50,-52.28,0.02,38,-0.01,24,-871964,-0.02,-1,0,0x68
2023-10-25 08:30:57 INFO Performing get obstacles http-request
2023-10-25 08:30:57 INFO Backend: TX AT+S2,0x45
2023-10-25 08:30:58 INFO Backend: RX S2,0,0xe1
ic| context: 'modal-save-current-task'
ic| context_triggered: [{'prop_id': 'modal-save-current-task.is_open', 'value': True}]
ic| current_task.preview: X Y type
0 -1.675620 -27.198617 preview route
1 -2.074990 -26.782463 preview route
2 -8.965734 -26.782463 preview route
3 -9.175734 -26.602463 preview route
4 -2.110990 -26.602463 preview route
.. ... ... ...
114 -5.361441 -16.702463 preview route
115 -3.675178 -26.962463 preview route
116 -8.755734 -26.962463 preview route
117 -8.535178 -27.142463 preview route
118 -8.535178 -27.142463 preview route
[119 rows x 3 columns]
2023-10-25 08:30:59 INFO Schedulecfg data are successfully stored in schedulecfg.json
ic| context: 'dropdown-tasks-order'
ic| context_triggered: [{'prop_id': 'dropdown-tasks-order.value', 'value': None}]
ic| current_task.preview: Empty DataFrame
Columns: []
Index: []
2023-10-25 08:31:00 INFO Performing get state http-request
2023-10-25 08:31:00 INFO TX: AT+S,0x13
2023-10-25 08:31:00 INFO RX: S,25.38,5.22,-52.44,-2.62,1,2,0,0.81,2,5.50,-52.28,0.02,39,-0.01,23,-871964,-0.02,-1,0,0x65
2023-10-25 08:31:02 INFO Performing get state http-request
2023-10-25 08:31:02 INFO TX: AT+S,0x13
2023-10-25 08:31:02 INFO Backend: Task data are successfully saved in tasks.json
2023-10-25 08:31:02 INFO Backend: Tasks parameters data are successfully saved in tasks_parameters.json
ic| context: 'modal-save-current-task'
ic| context_triggered: [{'prop_id': 'modal-save-current-task.is_open', 'value': False}]
ic| current_task.preview: Empty DataFrame
Columns: []
Index: []
2023-10-25 08:31:03 INFO RX: S,25.39,5.22,-52.44,-2.62,1,2,0,0.46,2,5.50,-52.28,0.02,39,-0.01,26,-871964,-0.02,-1,0,0x6a
2023-10-25 08:31:03 INFO Schedulecfg data are successfully stored in schedulecfg.json
ic| context: 'dropdown-tasks-order'
ic| context_triggered: [{'prop_id': 'dropdown-tasks-order.value', 'value': None}]
ic| current_task.preview: Empty DataFrame
Columns: []
Index: []
2023-10-25 08:31:05 INFO Performing get state http-request
2023-10-25 08:31:05 INFO TX: AT+S,0x13
2023-10-25 08:31:05 INFO RX: S,25.38,5.22,-52.44,-2.62,1,2,0,0.14,2,5.50,-52.28,0.02,39,-0.01,26,-871964,-0.02,-1,0,0x64
2023-10-25 08:31:08 INFO Performing get state http-request
2023-10-25 08:31:08 INFO TX: AT+S,0x13
2023-10-25 08:31:08 INFO RX: S,25.38,5.22,-52.44,-2.62,1,2,0,0.79,2,5.50,-52.28,0.02,40,-0.01,26,-871964,-0.02,-1,0,0x67
2023-10-25 08:31:09 INFO Performing get obstacles http-request
2023-10-25 08:31:09 INFO Backend: TX AT+S2,0x45
2023-10-25 08:31:09 INFO Backend: RX S2,0,0xe1
Ohne diese Zeilen funktioniert das Speichern des Tasks.Kannst du mal probeweise in
/src/components/tasks/taskorder.py
Die Zeilen 63, 64 und 65 löschen und dann noch mal probieren
Theoretisch schon, Cassandra kann unterscheiden was das Perimeter und was eine Exclusion ist. Allerdings kann ich noch nicht abschätzen was das für ein Aufwand wäre. Wenn es schnell geht baue ich es ein, wenn es komplizierter ist, dann muss es wartenBesteht die Chance, dass man das noch trennt? Also so, dass man auch nur die Area mähen kann, dabei aber auch eingestellt werden kann, dass man die Exclusion-Ränder auch mäht. Wenn man die Exclusions zusammen mit dem Perimeter mäht, wird das optimierte System schnell ineffizient.