We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63ff829 + 7d9c19e commit e711a1aCopy full SHA for e711a1a
1 file changed
quisp/modules/PhysicalConnection/BSA/BSAController.cc
@@ -40,7 +40,9 @@ void BSAController::initialize() {
40
time_out_count = 0;
41
time_out_message = new BSMNotificationTimeout("bsm_notification_timeout");
42
if (is_active) {
43
- 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();
44
+ long long time_between_photon_in_atto = ((long long)1000000000000000000) / photon_per_second;
45
+ time_interval_between_photons = SimTime(time_between_photon_in_atto, SIMTIME_AS);
46
simtime_t first_notification_timer = SimTime(par("initial_notification_timing_buffer").doubleValue());
47
right_qnic = getExternalQNICInfoFromPort(1);
48
offset_time_for_first_photon = calculateOffsetTimeFromDistance();
0 commit comments