MCPcopy Create free account

hub / github.com/alphafox02/antsdr_dji_droneid / functions

Functions28 in github.com/alphafox02/antsdr_dji_droneid

↓ 6 callersMethod_respond
(self, body, content_type, status=200)
dragonscope.py:168
↓ 4 callersFunctionis_valid_latlon
Check if latitude and longitude are within valid ranges AND not exactly zero.
dji_receiver.py:350
↓ 2 callersFunctionload_config
Load config from dragonscope.cfg next to this script.
dragonscope.py:27
↓ 2 callersFunctionparse_new_fw_line
Parse a dji_O,... text line from the new firmware (drone_dji_rid_decode). Returns same dict structure as parse_data_1() for unified downstrea
dji_receiver.py:198
↓ 2 callersFunctionreload_config
Reload config from disk. Picks up new license keys without restart.
dragonscope.py:189
↓ 1 callersMethod_handle_query
(self, parsed)
dragonscope.py:139
↓ 1 callersFunctioncall_remote
Forward to remote endpoint, return raw response.
dragonscope.py:99
↓ 1 callersFunctionformat_as_zmq_json
Formats the parsed data into a ZMQ-compatible list of messages. Works identically for legacy binary and new firmware text input.
dji_receiver.py:412
↓ 1 callersFunctionget_device_id
Hardware fingerprint tied to physical board. Stable across reboots and network changes: - Pi (ARM): CPU serial from /proc/cpuinfo (burne
dragonscope.py:48
↓ 1 callersFunctionget_sensor_gps
Thread-safe read of cached sensor GPS.
dji_receiver.py:406
↓ 1 callersFunctionhaversine_distance_km
(lat1: float, lon1: float, lat2: float, lon2: float)
dji_receiver.py:355
↓ 1 callersFunctionmain
()
dji_receiver.py:687
↓ 1 callersFunctionmain
()
dragonscope.py:219
↓ 1 callersFunctionparse_args
()
dji_receiver.py:70
↓ 1 callersFunctionparse_data_1
Parses data of package type 0x01 from legacy firmware binary format. Returns a dictionary with the fields needed to build a ZMQ-compatible JS
dji_receiver.py:119
↓ 1 callersFunctionparse_frame
Parses the raw binary frame from legacy AntSDR firmware.
dji_receiver.py:107
↓ 1 callersFunctionpoll_monitor_for_gps
Non-blocking poll of the monitor socket. If a valid GPS arrives, update cache.
dji_receiver.py:380
↓ 1 callersFunctionsend_zmq_message
(zmq_pub_socket: zmq.Socket, message_list: list)
dji_receiver.py:505
↓ 1 callersFunctionsetup_logging
(debug: bool)
dji_receiver.py:90
↓ 1 callersFunctionsetup_monitor_sub
Create a SUB socket to the WarDragon system monitor (publishes JSON with gps_data).
dji_receiver.py:366
Functionconfig_watcher
Periodically check if config has been updated.
dragonscope.py:209
Methoddo_GET
(self)
dragonscope.py:126
Functioniso_timestamp_now
Return current UTC time as an ISO8601 string with 'Z' suffix.
dji_receiver.py:98
Functionlegacy_tcp_client
Connects to AntSDR via TCP (legacy firmware), receives binary frames, parses them, and puts parsed dicts into the shared queue.
dji_receiver.py:518
Methodlog_message
(self, fmt, *args)
dragonscope.py:178
Functionnew_fw_connection_handler
Handle a single connection from a new-firmware AntSDR.
dji_receiver.py:559
Functionnew_fw_tcp_server
TCP server that accepts connections from new-firmware AntSDR daemons. Each connection is handled in its own thread to support multiple AntSDR
dji_receiver.py:608
Functionnew_fw_udp_server
UDP server for DragonScope-bridged AntSDR firmware.
dji_receiver.py:641