-
Notifications
You must be signed in to change notification settings - Fork 6
receiver_sim.py
Corey Koval edited this page Jul 25, 2020
·
2 revisions
Generates the XML output data.
-
DOA_res_fd
- XML output file descriptor.
-
station_id
- string, Name of the RDF station.
-
freq
- float, Frequency of the transmitter
-
location
- tuple, latitude and longitude of the RDF station
-
heading
- float, heading of the RDF station
-
doa
- LOB detected by the RDF station
-
conf
- Receiver confidence of the LOB
-
pwr
- SNR of the received signal.
Calculates the pathloss of the transmitted signal based on distance from the receiver. Returns SNR.
- distance
- float, distance between receiver and transmitter in meters.
Calculates LOB and preps data for wr_xml.
-
station_id
- string, Name of the RDF station.
-
DOA_res_fd
- XML output file descriptor.
-
rx_location
- tuple, latitude and longitude of the RDF station
-
freq
- float, Frequency of the transmitter
-
tx_location
- tuple, latitude and longitude of the transmitter
-
heading
- float, heading of the RDF station, defaults to 0
Interpolates straight line path between two waypoints.
-
coord1
- tuple, coordinates of point A
-
coord2
- tuple, coordinates of point B
-
speed
- float, speed of moving object in meters per second.
-
resolution
- float, Generally the refresh rate of the loop running the moving object. Determines how many points to generate based on speed.
Takes a list of waypoints and interpolates a full list of coordinates to create a path that starts at point 0 and returns to point 0.
-
waypoints
- list of tuples, all waypoints to interpolate.
-
speed
- float, speed of moving object in meters per second.
-
resolution
- float, Generally the refresh rate of the loop running the moving object. Determines how many points to generate based on speed.