Commit 59701074 authored by Wei Xu's avatar Wei Xu
Browse files

probablity remove

parent bd2ace95
Pipeline #169262 failed with stage
in 1 minute and 22 seconds
......@@ -68,21 +68,13 @@ public class MessagingService extends NetworkTask {
Vehicle vehicle = physicalVehicle.getSimulationVehicle();
if (vehicle.controllerBus.get().getData( BusEntry.OUT_STATUS_MESSAGE.toString() )!=null){
Status_Message status_message = (Status_Message)vehicle.controllerBus.get().getData( BusEntry.OUT_STATUS_MESSAGE.toString() );
Random r = new Random();
int n5 = r.nextInt(100);
if(n5 < 100){
sendstatusmessage(status_message);
}
vehicle.controllerBus.get().setData( BusEntry.OUT_STATUS_MESSAGE.toString(), null);
}
if (vehicle.controllerBus.get().getData( BusEntry.OUT_TRAJECTORY_MESSAGE.toString() )!=null){
Trajectory_Message trajectory_message = (Trajectory_Message)vehicle.controllerBus.get().getData( BusEntry.OUT_TRAJECTORY_MESSAGE.toString() );
Random r1 = new Random();
int n6 = r1.nextInt(100);
if(n6 < 100){
sendtrajectorymessage(trajectory_message);
}
vehicle.controllerBus.get().setData( BusEntry.OUT_TRAJECTORY_MESSAGE.toString(), null);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment