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

Remove individual field references in favour of a simplified "global" reference for all coordinates #129

Merged
merged 8 commits into from
Jul 24, 2024

Conversation

rodja
Copy link
Member

@rodja rodja commented Jul 20, 2024

This pull request simplifies the handling of coordinates by replacing the per-field geo reference a global reference which is set once and never changes. This simplifies the code a lot and is less error-prone.

The reference can be changed by the press of a button in the Field Planner. It takes the current position of the robot as new reference and restarts the system (because all cartesian coordinates floating in memory needs to be recalculated according to the new reference point).

Screenshot 2024-07-20 at 05 58 01

ToDos

  • test on real robot (with setting a new reference point after a field has been created)

@rodja rodja added the enhancement New feature or request label Jul 20, 2024
@rodja rodja added this to the 0.2.0 milestone Jul 20, 2024
Copy link
Contributor

@pascalzauberzeug pascalzauberzeug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes seem fine to me, but I think @LukasBaecker can provide more inside

@rodja
Copy link
Member Author

rodja commented Jul 24, 2024

The test was successful. Including changing the reference point -> a test field created before stayed where it was created.

@rodja rodja merged commit e646f83 into main Jul 24, 2024
1 check passed
@rodja rodja deleted the no-field-reference branch July 24, 2024 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants