Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyuan0124 committed Nov 26, 2024
1 parent 4e88b42 commit bde6749
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void sendVehStatusMsgs(byte[] data) throws IOException {
throw new IllegalStateException("Attempted to send data before opening socket");
}

DatagramPacket packet = new DatagramPacket(data, data.length, super.getTargetAddress(), rxVehicleStatusPort);
DatagramPacket packet = new DatagramPacket(data, data.length, this.bridgeInetAddress, rxVehicleStatusPort);
super.rxMsgsSocket.send(packet);
}

Expand All @@ -104,7 +104,7 @@ public void sendTrafficEventMsgs(byte[] data) throws IOException {
throw new IllegalStateException("Attempted to send data before opening socket");
}

DatagramPacket packet = new DatagramPacket(data, data.length, super.getTargetAddress(), rxTrafficEventPort);
DatagramPacket packet = new DatagramPacket(data, data.length, this.bridgeInetAddress, rxTrafficEventPort);
super.rxMsgsSocket.send(packet);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public List<String> getVehicleIds(){
List<String> result = new ArrayList<>();

for(CarmaMessengerInstance name : managedInstances.values()){
result.add(name.getVehicleId());
result.add(name.getRoleName());
}
return result;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ private synchronized void receiveV2xReceptionInteraction(V2xMessageReception int
}

protected void onDsrcRegistrationRequest(String vehicleId) throws UnknownHostException {
log.info("Adding DSRC on vehicle ID: {}", vehicleId);
ExternalVehicleRegistration tempRegistration = new ExternalVehicleRegistration(
currentSimulationTime,
vehicleId,
Expand Down

0 comments on commit bde6749

Please sign in to comment.