Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Add support for TMOD3 fixed position. #135

Merged
merged 2 commits into from
Oct 26, 2020
Merged

Conversation

nseidle
Copy link
Member

@nseidle nseidle commented Oct 23, 2020

There are times when I need to set the static position of the receiver CFG-TMODE3 so I added setStaticPosition.

This PR:

  • Adds setStaticPosition that enables the setting via ECEF or Lat/Long coords
  • Adds an example demoing the use

I think this is a good example of a function that should be converted to set/getVals. The ZED is pretty much the first receiver to support TMODE3 so we don't have to worry about <v27 protocol issues. The function would go from 50 lines to perhaps 8 and remove the need for read/modify/write steps (faster!).

@nseidle nseidle requested a review from PaulZC October 23, 2020 19:48
@nseidle nseidle changed the base branch from master to release_candidate October 23, 2020 19:48
Copy link
Collaborator

@PaulZC PaulZC left a comment

Choose a reason for hiding this comment

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

Hi @nseidle ,
Looks (mostly) good. I suggest a few minor tweaks:
Cheers!
Paul

Copy link
Collaborator

@PaulZC PaulZC left a comment

Choose a reason for hiding this comment

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

Hi @nseidle ,
Apologies. I had finger trouble and have submitted a blank review before this one. Please ignore that one.
This is great but I suggest renaming the function parameters to reflect that they can be ECEF or Lat/Lon/Alt (see below).
Cheers,
Paul

@nseidle
Copy link
Member Author

nseidle commented Oct 26, 2020

I think all changes are committed. Please have a look at your convenience.

@PaulZC
Copy link
Collaborator

PaulZC commented Oct 26, 2020

Nice one - thank you! Please merge and delete branch at your convenience...

@nseidle nseidle merged commit 50086e4 into release_candidate Oct 26, 2020
@nseidle nseidle deleted the setStaticPosition branch October 26, 2020 18:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants