ArduPilot / ArduRemoteID

RemoteID support using OpenDroneID
GNU General Public License v2.0
103 stars 50 forks source link

Treat UAS ID Types based on data type accordingly #139

Open kc2rxo opened 10 months ago

kc2rxo commented 10 months ago

F3411-22a defines the UAS ID Types to have the following data types:

  1. Serial Numbers as ASCII string
  2. CAA Assigned ID as ASCII string
  3. UTM Assigned ID as UUIDv4 (encoded as bytes)
  4. Specific Session ID as bytes

This PR fixes an issue (documented in #124) where the use of ODID_COPY_STR (specifically the strncpy function within it) was incorrectly truncating UAS IDs (specifically ID Types 3 and 4) on the first occurrence of a 0 or null byte.