This makes Amplitude Modulated Pulse Train, which can be regarded as the discretized wave of the signal. Pulse Train can be defined by frequency and duty cycle, which can be temporarily changed, referring to PWM.

Dependents:   Interference_Simple

Branch:
35e9675a
Revision:
8:1f88fb3a4c57
Parent:
1:19c3a52c80c3
Child:
9:80a5ef57af11
diff -r 5eae3f90d161 -r 1f88fb3a4c57 AMPulseTrain.cpp
--- a/AMPulseTrain.cpp	Mon Jan 13 19:04:11 2020 +0000
+++ b/AMPulseTrain.cpp	Fri Feb 21 05:29:09 2020 +0000
@@ -9,7 +9,7 @@
     Carrier(arg_carrier),
     Signal(arg_signal)
 {
-    setFrequency_Carrier(Carrier->getFrequency());
+    RecalcPulsebaseParameter();
 }