Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion quisp/modules/PhysicalConnection/BSA/BSAController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ void BSAController::initialize() {
time_out_count = 0;
time_out_message = new BSMNotificationTimeout("bsm_notification_timeout");
if (is_active) {
time_interval_between_photons = SimTime(1, SIMTIME_S) / SimTime(getParentModule()->getSubmodule("bsa")->par("photon_detection_per_second").intValue(), SIMTIME_S);
long long photon_per_second = getParentModule()->getSubmodule("bsa")->par("photon_detection_per_second").intValue();
long long time_between_photon_in_atto = ((long long)1000000000000000000) / photon_per_second;
time_interval_between_photons = SimTime(time_between_photon_in_atto, SIMTIME_AS);
simtime_t first_notification_timer = SimTime(par("initial_notification_timing_buffer").doubleValue());
right_qnic = getExternalQNICInfoFromPort(1);
offset_time_for_first_photon = calculateOffsetTimeFromDistance();
Expand Down
Loading