Skip to content

feat: adding coordinate type settings#3

Open
nick-tolentino wants to merge 1 commit into
Dronecode:mainfrom
nick-tolentino:main
Open

feat: adding coordinate type settings#3
nick-tolentino wants to merge 1 commit into
Dronecode:mainfrom
nick-tolentino:main

Conversation

@nick-tolentino

Copy link
Copy Markdown

Add coord_type field for coordinate display representation

Summary

Adds an optional coord_type field to all coordinate-bearing messages, letting a system indicate the preferred representation (decimal degrees, DMS, MGRS, UTM) for displaying a position. The on-wire lat/lon remain WGS84 degE7 in every case — this field is purely a display/presentation hint and does not change how coordinates are encoded or transmitted.

Changes

  • New enum COORD_TYPE
    • COORD_TYPE_WGS84_DECIMAL (0) — decimal degrees
    • COORD_TYPE_WGS84_DMS (1) — degrees/minutes/seconds
    • COORD_TYPE_MGRS (2) — Military Grid Reference System
    • COORD_TYPE_UTM (3) — Universal Transverse Mercator
  • New coord_type field appended to the 8 messages that carry lat/lon:
    TARGET_SET_COORD, TARGET_BOX_COORD, TARGET_COORD, FIRES, SPLASH_CORRECTION, TARGET_HANDOVER, BATTLE_DAMAGE_ASSESSMENT, RWS_POSE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant