Skip to content

Commit

Permalink
Set default team name and role for Meshtastic messages if team and ro…
Browse files Browse the repository at this point in the history
…le aren't specified
  • Loading branch information
brian7704 committed Oct 29, 2024
1 parent e4bbf04 commit d74c243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentakserver/controllers/cot_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ def parse_point(self, event, uid, cot_id):
tak_packet.is_compressed = True
tak_packet.contact.device_callsign, size = unishox2.compress(eud.uid)
tak_packet.contact.callsign, size = unishox2.compress(eud.callsign)
tak_packet.group.team = eud.team.name.replace(" ", "_") if eud.team else ""
tak_packet.group.role = eud.team_role.replace(" ", "") if eud.team_role else ""
tak_packet.group.team = eud.team.name.replace(" ", "_") if eud.team else "Cyan"
tak_packet.group.role = eud.team_role.replace(" ", "") if eud.team_role else "TeamMember"
tak_packet.status.battery = int(p.battery) if p.battery else 0
tak_packet.pli.latitude_i = int(p.latitude / .0000001)
tak_packet.pli.longitude_i = int(p.longitude / .0000001)
Expand Down

0 comments on commit d74c243

Please sign in to comment.