Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mow borders over API #153

Open
goosst opened this issue Sep 17, 2024 · 2 comments
Open

Mow borders over API #153

goosst opened this issue Sep 17, 2024 · 2 comments

Comments

@goosst
Copy link

goosst commented Sep 17, 2024

Through MQTT, I try to set the properties of the mowing.
The scripts I use seem to be working fine, except when setting mowborder to 0.

Setting mowborder to 2 --> 2 borderlines on the map: as expected
Setting mowborder to 1 --> 1 borderline on the map: as expected
Setting mowborder to 0 --> still keeps the existing amount of mowborder: as expected

Over mqtt the "mow parameters" are still reported as { "pattern": "lines", "width": 0.18, "angle": 38, "distancetoborder": 2, "mowarea": true, "mowborder": 1, "mowexclusion": false, "mowborderccw": true}

image

I did not run cassandra in debug mode, but it's easy to reproduce if needed.

image

@EinEinfach
Copy link
Owner

Can't say you why, I don't remember, but the value is out of range:
value = int(buffer['mowborder']) if 0 < value <= 5: pathplannercfgapi.mowborder = value logger.info(f'Mow parameter mow border changed to: {value}') else: logger.info(f'Wrong range of mow border value')

Maybe it’s just a lack of attention on my part

@EinEinfach
Copy link
Owner

I changed it in master branch. Should be ok now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants