AIS RRC taps updated, more precision, corrected frequency shift.

This commit is contained in:
Jared Boone 2015-10-15 13:33:21 -07:00
parent 338983e7ae
commit 0a7ac153a7

View File

@ -71,40 +71,40 @@ constexpr std::array<std::complex<float>, 8> rrc_taps_8_p { {
//
constexpr std::array<std::complex<float>, 8> rrc_taps_8_p { {
{ 0.02104694f, 0.00000000f }, { -0.02630867f, 0.02630867f },
{ 0.00000000f, 0.05261734f }, { -0.20290270f, -0.20290270f },
{ -0.56365746f, 0.00000000f }, { -0.20290270f, 0.20290270f },
{ 0.00000000f, -0.05261734f }, { -0.02630867f, -0.02630867f },
{ 2.1046938375e-02f, 0.0000000000e+00f }, { -2.6308671336e-02f, -2.6308671336e-02f },
{ -3.2218829289e-18f, -5.2617341280e-02f }, { -2.0290270482e-01f, 2.0290270482e-01f },
{ -5.6365746260e-01f, 6.9028130738e-17f }, { -2.0290270482e-01f, -2.0290270482e-01f },
{ 9.6656487867e-18f, 5.2617341280e-02f }, { -2.6308671336e-02f, 2.6308671336e-02f },
} };
constexpr std::array<std::complex<float>, 16> rrc_taps_16_p { {
{ -0.00506828f, 0.00000000f }, { 0.00380121f, -0.00380121f },
{ 0.00000000f, -0.00152049f }, { 0.00532170f, 0.00532170f },
{ -0.02128679f, -0.00000000f }, { 0.02660849f, -0.02660849f },
{ 0.00000000f, -0.05321698f }, { 0.20521503f, 0.20521503f },
{ 0.57008100f, 0.00000000f }, { 0.20521503f, -0.20521503f },
{ -0.00000000f, 0.05321698f }, { 0.02660849f, 0.02660849f },
{ -0.02128679f, -0.00000000f }, { 0.00532170f, -0.00532170f },
{ -0.00000000f, 0.00152049f }, { 0.00380121f, 0.00380121f },
{ -5.0682835281e-03f, 0.0000000000e+00f }, { 3.8012127427e-03f, 3.8012127427e-03f },
{ 9.3102863700e-20f, 1.5204851516e-03f }, { 5.3216978397e-03f, -5.3216978397e-03f },
{ -2.1286793053e-02f, 2.6068802977e-18f }, { 2.6608490845e-02f, 2.6608490845e-02f },
{ 9.7758004319e-18f, 5.3216978908e-02f }, { 2.0521502845e-01f, -2.0521502845e-01f },
{ 5.7008099556e-01f, -1.3962957329e-16f }, { 2.0521502845e-01f, 2.0521502845e-01f },
{ -1.6293000720e-17f, -5.3216978908e-02f }, { 2.6608490845e-02f, -2.6608490845e-02f },
{ -2.1286793053e-02f, 7.8206408930e-18f }, { 5.3216978397e-03f, 5.3216978397e-03f },
{ -6.5172004590e-19f, -1.5204851516e-03f }, { 3.8012127427e-03f, -3.8012127427e-03f },
} };
constexpr std::array<std::complex<float>, 32> rrc_taps_32_p { {
{ -0.00124950f, 0.00000000f }, { 0.00075863f, -0.00075863f },
{ 0.00000000f, -0.00011671f }, { 0.00087534f, 0.00087534f },
{ -0.00222813f, -0.00000000f }, { 0.00144828f, -0.00144828f },
{ 0.00000000f, -0.00032184f }, { 0.00177013f, 0.00177013f },
{ -0.00505750f, -0.00000000f }, { 0.00379313f, -0.00379313f },
{ 0.00000000f, -0.00151725f }, { 0.00531038f, 0.00531038f },
{ -0.02124151f, -0.00000000f }, { 0.02655189f, -0.02655189f },
{ 0.00000000f, -0.05310377f }, { 0.20477849f, 0.20477849f },
{ 0.56886834f, 0.00000000f }, { 0.20477849f, -0.20477849f },
{ -0.00000000f, 0.05310377f }, { 0.02655189f, 0.02655189f },
{ -0.02124151f, -0.00000000f }, { 0.00531038f, -0.00531038f },
{ -0.00000000f, 0.00151725f }, { 0.00379313f, 0.00379313f },
{ -0.00505750f, -0.00000000f }, { 0.00177013f, -0.00177013f },
{ 0.00000000f, 0.00032184f }, { 0.00144828f, 0.00144828f },
{ -0.00222813f, -0.00000000f }, { 0.00087534f, -0.00087534f },
{ -0.00000000f, 0.00011671f }, { 0.00075863f, 0.00075863f },
{ -1.2495006667e-03f, 0.0000000000e+00f }, { 7.5862532786e-04f, 7.5862532786e-04f },
{ 7.1465238505e-21f, 1.1671159155e-04f }, { 8.7533694842e-04f, -8.7533694842e-04f },
{ -2.2281305864e-03f, 2.7286729908e-19f }, { 1.4482847468e-03f, 1.4482847468e-03f },
{ 5.9121245638e-20f, 3.2184107113e-04f }, { 1.7701258199e-03f, -1.7701258199e-03f },
{ -5.0575020723e-03f, 1.2387307449e-18f }, { 3.7931268039e-03f, 3.7931268039e-03f },
{ 4.6452407924e-19f, 1.5172507847e-03f }, { 5.3103774596e-03f, -5.3103774596e-03f },
{ -2.1241510287e-02f, 7.8040042746e-18f }, { 2.6551890262e-02f, 2.6551890262e-02f },
{ 2.2761678735e-17f, 5.3103774786e-02f }, { 2.0477849246e-01f, -2.0477849246e-01f },
{ 5.6886833906e-01f, -2.7866511623e-16f }, { 2.0477849246e-01f, 2.0477849246e-01f },
{ -2.9265015516e-17f, -5.3103774786e-02f }, { 2.6551890262e-02f, -2.6551890262e-02f },
{ -2.1241510287e-02f, 1.3006673791e-17f }, { 5.3103774596e-03f, 5.3103774596e-03f },
{ -3.7171317828e-18f, -1.5172507847e-03f }, { 3.7931268039e-03f, -3.7931268039e-03f },
{ -5.0575020723e-03f, 3.7161922347e-18f }, { 1.7701258199e-03f, 1.7701258199e-03f },
{ 3.1551252346e-19f, -3.2184107113e-04f }, { 1.4482847468e-03f, -1.4482847468e-03f },
{ -2.2281305864e-03f, 1.9100710935e-18f }, { 8.7533694842e-04f, 8.7533694842e-04f },
{ -3.1451929164e-19f, -1.1671159155e-04f }, { 7.5862532786e-04f, -7.5862532786e-04f },
} };
struct BitRemap {