opendroneid / opendroneid-core-c

Open Drone ID Core C Library
Apache License 2.0
178 stars 64 forks source link

Support new Classification fields and fix some bugs #26

Closed friissoren closed 4 years ago

friissoren commented 4 years ago

The ASD-STAN Direct Remote ID standard introduces new fields for transmitting classification data.

Changed the name of the operator location type to be more descriptive and at the same time fixed a bug where this field was encoded with too few bits and in the wrong position.

Also a new status enum value for Emergency has been defined.

A future version of the ASTM Remote ID standard will include the same new fields and values.

The mav2odid code was reducing the precision of latitudes and longitudes when doing the conversions.

Avoid unnecessary conversion from float to double when checking input values against max/min values.

friissoren commented 4 years ago

Sorry for my lack of patience. I will need to merge this now, since I need these changes for some internal work I am doing. If you have any comments/changes needed for the content of this PR, let's fix those afterwards.