AMPModem
Modulates or demodulates AM, USB or LSB
class AMPModem {
constructor AMPModem('name');
bool configure( {'modulation_index' : number, 'type' : 'AM' OR 'LSB' or 'USB', 'agc' : boolean });
IQData modulate( FloatData input );
FloatData demodulate( IQData iq );
}
This object can be used with the Digital Down Converter
Note that the demodulator does not handle the AGC process. Again, see Digital Down Converter for integration.
.configure
Sets the configuration for the AM/SSB modem.
- Parameter modulation_index is valid in the range [0..1] and is used for modulation only.
- Agc parameter is only valid for demodulation
Example :
var amdemod = new AMPModem('myname');
amdemod.configure( { 'type' : 'AM' , 'agc': true } ) ;
for( ; ; ) {
var IQ = ...
var audio = amdemod.demodulate( IQ );
...
}
.modulate
.demodulate
Last update: December 4, 2023