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
Revision 9:80a5ef57af11, committed 2020-02-21
- Comitter:
- aktk
- Date:
- Fri Feb 21 05:31:49 2020 +0000
- Branch:
- 35e9675a
- Parent:
- 8:1f88fb3a4c57
- Commit message:
- Modified types of Signal and Carrier from "* const" to just "*"
Changed in this revision
AMPulseTrain.cpp | Show annotated file Show diff for this revision Revisions of this file |
AMPulseTrain.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/AMPulseTrain.cpp Fri Feb 21 05:29:09 2020 +0000 +++ b/AMPulseTrain.cpp Fri Feb 21 05:31:49 2020 +0000 @@ -2,9 +2,9 @@ AMPulseTrain::AMPulseTrain( /// Carrier Pulse Train - PulseTrain * const arg_carrier, + PulseTrain * arg_carrier, /// Initial AM Signal expression - AMSignal * const arg_signal + AMSignal * arg_signal ): Carrier(arg_carrier), Signal(arg_signal)
--- a/AMPulseTrain.h Fri Feb 21 05:29:09 2020 +0000 +++ b/AMPulseTrain.h Fri Feb 21 05:31:49 2020 +0000 @@ -29,16 +29,16 @@ */ AMPulseTrain( /// Carrier Pulse Train - PulseTrain * const arg_carrier = new PulseTrain(), + PulseTrain * arg_carrier = new PulseTrain(), /// Initial AM Signal expression - AMSignal * const arg_signal = new AMSignal() + AMSignal * arg_signal = new AMSignal() ); /// Carrier Pulse Train - PulseTrain * const Carrier; + PulseTrain * Carrier; /// AM Signal - AMSignal * const Signal; + AMSignal * Signal; /// register callback called every clock (not carrier pulse edges) void attachCallback_asClock(