File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 2020#include < sys/socket.h>
2121#include < arpa/inet.h>
2222
23- #define RECEIVE_IP " 192.168.3.40" // The receiving computer IP
24- // #define CONNECT_IP "192.168.3.58" // The drone IP address from which to receive packets
23+ // The ports are currently hardcoded - the IP addresses differ for different drones
2524#define RECEIVE_PORT 4096
2625#define CONNECT_PORT 4096
2726
@@ -47,7 +46,6 @@ void RfsocTransmitter::dataTransmit(RfsocPacketPtr rp){
4746 builder_->AsyncDatum (ts.time , rfsoc_sample);
4847}
4948
50- // borrowing from Ben's code - just listening for anything on network that arrives at BROADCAST_IP
5149int RfsocTransmitter::SetupUDPSocket ()
5250{
5351 struct sockaddr_in rx_addr;
@@ -119,7 +117,6 @@ int RfsocTransmitter::Stop()
119117 return (0 );
120118}
121119
122- // Adapted to use Ben's code, but could go back to DfMuxCollectors's recvfrom
123120void RfsocTransmitter::Listen (RfsocTransmitter *transmitter)
124121{
125122 ssize_t len;
You can’t perform that action at this time.
0 commit comments