-
Notifications
You must be signed in to change notification settings - Fork 51
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
ntamas
left a comment
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.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.
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.
done
| 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?
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.
done with the latest commit
|
somehow managed to fix the CLI conflict with my (now removed) |
| 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.
Why do you have this function twice?
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.
fixed, good question
| 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.
do we need to check if a fixed position is configured for this preset here?
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.
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 |
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.
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
No description provided.