mirror of
https://github.com/aicodix/modem.git
synced 2026-04-27 14:30:34 +00:00
base modulation order from mod_bits
This commit is contained in:
parent
513664a0e3
commit
d978bb0be6
2 changed files with 4 additions and 4 deletions
|
|
@ -254,15 +254,15 @@ struct Decoder
|
|||
}
|
||||
cmplx mod_map(code_type *b)
|
||||
{
|
||||
return QuadratureAmplitudeModulation<16, cmplx, code_type>::map(b);
|
||||
return QuadratureAmplitudeModulation<1 << mod_bits, cmplx, code_type>::map(b);
|
||||
}
|
||||
void mod_hard(code_type *b, cmplx c)
|
||||
{
|
||||
QuadratureAmplitudeModulation<16, cmplx, code_type>::hard(b, c);
|
||||
QuadratureAmplitudeModulation<1 << mod_bits, cmplx, code_type>::hard(b, c);
|
||||
}
|
||||
void mod_soft(code_type *b, cmplx c, value precision)
|
||||
{
|
||||
QuadratureAmplitudeModulation<16, cmplx, code_type>::soft(b, c, precision);
|
||||
QuadratureAmplitudeModulation<1 << mod_bits, cmplx, code_type>::soft(b, c, precision);
|
||||
}
|
||||
const cmplx *next_sample()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -191,7 +191,7 @@ struct Encoder
|
|||
}
|
||||
cmplx mod_map(code_type *b)
|
||||
{
|
||||
return QuadratureAmplitudeModulation<16, cmplx, code_type>::map(b);
|
||||
return QuadratureAmplitudeModulation<1 << mod_bits, cmplx, code_type>::map(b);
|
||||
}
|
||||
Encoder(DSP::WritePCM<value> *pcm, const uint8_t *inp, int freq_off, uint64_t call_sign, int oper_mode, int reserved_tones) :
|
||||
pcm(pcm), crc0(0xA8F4), crc1(0x8F6E37A0), bchenc({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue