-
Notifications
You must be signed in to change notification settings - Fork 83
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
STANAG 4607 packets + mission segment + dwell segment #1716
base: master
Are you sure you want to change the base?
Conversation
3253cd3
to
3586050
Compare
c4dea5b
to
4d933ae
Compare
b4e72d0
to
632b536
Compare
@judajake PTAL: This reads the files I have so far |
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.
A couple of suggestions. I think there would also be some value in adding a bit of documentation to point people to the standard.
86ef8d2
to
f969ba0
Compare
I will look in more detail later but quick question, is this edition B? If so, I wonder if it makes sense to call that out in the files names/code. The other thought is that the first edition isn't used anymore so it doesn't matter. Thoughts? |
@dstoup The document I was working off of says "ANNEX A TO I'd vote for just documenting it somewhere for now. Should we add a README? |
Sorry for the noise, I was misreading 4607 as 4676 :/ |
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.
Calling it "gmti" instead of "stanag" in the paths / names would be more descriptive.
@@ -112,6 +112,7 @@ OPTION(KWIVER_ENABLE_SPROKIT "Enable building sprokit" OFF ) | |||
if(KWIVER_ENABLE_ARROWS) | |||
OPTION(KWIVER_ENABLE_MVG "Enable Multi-View Geometry Arrow" ON ) | |||
OPTION(KWIVER_ENABLE_KLV "Enable Key-Length-Value Metadata Arrow" ON) | |||
OPTION(KWIVER_ENABLE_STANAG "Enable NATO Standardization Agreement Arrow" ON) |
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.
There are a bunch of STANAGs, of which 4607 is just one (and 4676 is probably also interesting, along with 4609). Perhaps
OPTION(KWIVER_ENABLE_STANAG "Enable NATO Standardization Agreement Arrow" ON) | |
OPTION(KWIVER_ENABLE_4607 "Enable NATO Standardization Agreement 4607 (GMTI) Arrow" ON) |
and corresponding changes below.
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.
@judajake Do you have a preference between making each STANAG its own arrow or having one arrow for all of them?
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.
My bias is towards having one arrow. Longterm, hopefully, more will be supported.
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.
I think you already have two (since that is what the KLV arrow is - STANAG 4609). So it would not be consistent to say that this is the NATO Standardization Agreement Arrow.
3315ce4
to
6c2f1f1
Compare
float | ||
float_to_binary_angle( float value, int n ) | ||
{ | ||
return value * 1.40625 * ( 1 / pow( 2, n - 8 ) ); |
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.
One thing you might like to consider here (and for the SA case) is that n
will only ever be one of two values (16 or 32). So you can turn this into a straight scaling factor, either with if (n == ...)
construct or by defining two functions for each case (e.g. float_to_binary_angle_16()
). Then you don't have the pay the cost of the pow()
call each time.
@@ -112,6 +112,7 @@ OPTION(KWIVER_ENABLE_SPROKIT "Enable building sprokit" OFF ) | |||
if(KWIVER_ENABLE_ARROWS) | |||
OPTION(KWIVER_ENABLE_MVG "Enable Multi-View Geometry Arrow" ON ) | |||
OPTION(KWIVER_ENABLE_KLV "Enable Key-Length-Value Metadata Arrow" ON) | |||
OPTION(KWIVER_ENABLE_STANAG "Enable NATO Standardization Agreement Arrow" ON) |
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.
My bias is towards having one arrow. Longterm, hopefully, more will be supported.
Initial version of a STANAG 4607 packet reader.