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:
7:5eae3f90d161
Parent:
1:19c3a52c80c3
--- a/PulseTrain.h	Mon Jan 06 21:37:20 2020 +0000
+++ b/PulseTrain.h	Mon Jan 13 19:04:11 2020 +0000
@@ -24,9 +24,9 @@
      */
     PulseTrain(
         /// Initial carrier pulse frequency
-        uint32_t const arg_freq = 4000,
+        uint32_t const arg_freq_init = 4000,
         /// Initial carrier pulse duty cycle
-        float const arg_duty = 0.5,
+        float const arg_duty_init = 0.5,
         /// Initialize FREQ_MAX
         uint32_t const arg_freq_max = 8000
     );