Skip to content

Conversation

@zarcell
Copy link

@zarcell zarcell commented Oct 7, 2025

No description provided.

@CLAassistant
Copy link

CLAassistant commented Oct 7, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@ntamas ntamas left a comment

Choose a reason for hiding this comment

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

Only a few minor changes, thanks a lot!

self.position_ecef = position
self._antenna_position_timestamp = monotonic()

def set_from_ecef(self, position: ECEFCoordinate) -> None:
Copy link
Member

Choose a reason for hiding this comment

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

Please add documentation for this method.

Copy link
Author

Choose a reason for hiding this comment

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

done

preset_id, desired_preset = None, None

# Always reset fixed position when switching RTK source
self._survey_settings.position = None
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please double check that if you have a fixed position preset in the server config file those coordinates will be loaded back properly after many preset changes?

Copy link
Author

Choose a reason for hiding this comment

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

done with the latest commit

@zarcell zarcell reopened this Nov 19, 2025
@zarcell
Copy link
Author

zarcell commented Nov 19, 2025

somehow managed to fix the CLI conflict with my (now removed) .local git user commit

self.position_ecef = position
self._antenna_position_timestamp = monotonic()

def set_from_ecef(self, position: ECEFCoordinate) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you have this function twice?

Copy link
Author

Choose a reason for hiding this comment

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

fixed, good question

preset_id, desired_preset = None, None

# Always reset fixed position when switching RTK source
self._survey_settings.position = None
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to check if a fixed position is configured for this preset here?

Copy link
Author

Choose a reason for hiding this comment

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

this has already changed but wasnt commited at that time

preset_id, desired_preset = None, None

# Reset fixed position when switching RTK source, but restore from config if available
self._survey_settings.position = self._config_fixed_position
Copy link
Contributor

@vasarhelyi vasarhelyi Nov 21, 2025

Choose a reason for hiding this comment

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

You need to explicitly update self._config_fixed_position = None somewhere at the beginning of configuration parsing for cases when there is no fixed position stored and parsed properly from configuration

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

Successfully merging this pull request may close these issues.

4 participants