ArduPilot / ArduRemoteID

RemoteID support using OpenDroneID
GNU General Public License v2.0
90 stars 45 forks source link

Treat UAS ID Types based on data type accordingly #139

Open kc2rxo opened 7 months ago

kc2rxo commented 7 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.