- switch to use radio_float_t

- RX/TX Buffers: fixed interfacing from radio_float_t  to float I/O

git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@931 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2022-06-02 08:29:09 +00:00
parent 4f4fc52c01
commit 2acd47103c
6 changed files with 65 additions and 61 deletions
+5 -6
View File
@@ -1,5 +1,4 @@
#include <cmath>
#include <float.h>
#include "Receiver.hpp"
#include "MinMaxLemire.h"
#include <cpp/radio/Frame.hpp>
@@ -365,7 +364,7 @@ void Receiver::processPassband(RVec const &rf, uint32_t len)
const ScopedLock sl (m_lock);
uint32_t len_down;
float test4normal;
radio_float_t test4normal;
if (!m_ReceiverEnable)
{
@@ -401,7 +400,7 @@ void Receiver::processPassband(RVec const &rf, uint32_t len)
}
void Receiver::processBaseband(float *pI, float *pQ, uint32_t len)
void Receiver::processBaseband(radio_float_t *pI, radio_float_t *pQ, uint32_t len)
{
for (uint32_t i=0; i < len/2; i++)
{
@@ -630,10 +629,10 @@ void Receiver::processBaseband(CVec const &iq, uint32_t len)
// Lock-detector development
cpx_t winner_diff = Cpx(0,0);
float winner_d = 1000;
radio_float_t winner_d = 1000;
int winner_i = 0;
cpx_t diff;
float d;
radio_float_t d;
for (int i=0; i < 4; i++)
{
diff = CpxSubS(IQ_soft, m_trackers_[i]);
@@ -779,7 +778,7 @@ void Receiver::initFilterArm()
}
// Interface
void Receiver::setSamplerate(float samplerate_hz)
void Receiver::setSamplerate(radio_float_t samplerate_hz)
{
const ScopedLock sl (m_lock);