-
Notifications
You must be signed in to change notification settings - Fork 50
Server side changes for using saved fix coordinates with for the RTK base #10
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
base: main
Are you sure you want to change the base?
Conversation
Marcell Zahoran seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
There was a problem hiding this 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.descriptor = descriptor | ||
|
||
position = getattr(packet, "position", None) | ||
if position is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to use the newly added set_from_ecef()
method here (and everywhere where we are modifying self.position
, self.position_ecef
and self._antenna_position_timestamp
at the same time.
self.position_ecef = position | ||
self._antenna_position_timestamp = monotonic() | ||
|
||
def set_from_ecef(self, position: ECEFCoordinate) -> None: |
There was a problem hiding this comment.
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.
preset_id, desired_preset = None, None | ||
|
||
# Always reset fixed position when switching RTK source | ||
self._survey_settings.position = None |
There was a problem hiding this comment.
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?
No description provided.