mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-12 22:43:36 -04:00
BldeRF2 MIMO and Beam steering plugins enhancements and fixes
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
MESSAGE_CLASS_DEFINITION(BeamSteeringCWModSource::MsgConfigureChannelizer, Message)
|
||||
MESSAGE_CLASS_DEFINITION(BeamSteeringCWModSource::MsgSignalNotification, Message)
|
||||
MESSAGE_CLASS_DEFINITION(BeamSteeringCWModSource::MsgConfigureSteeringAngle, Message)
|
||||
MESSAGE_CLASS_DEFINITION(BeamSteeringCWModSource::MsgConfigureChannelMute, Message)
|
||||
|
||||
BeamSteeringCWModSource::BeamSteeringCWModSource() :
|
||||
m_steeringDegrees(90),
|
||||
@@ -78,6 +79,12 @@ void BeamSteeringCWModSource::setSteeringDegrees(int steeringDegrees)
|
||||
m_inputMessageQueue.push(msg);
|
||||
}
|
||||
|
||||
void BeamSteeringCWModSource::muteChannel(bool mute0, bool mute1)
|
||||
{
|
||||
MsgConfigureChannelMute *msg = MsgConfigureChannelMute::create(mute0, mute1);
|
||||
m_inputMessageQueue.push(msg);
|
||||
}
|
||||
|
||||
void BeamSteeringCWModSource::pull(const SampleVector::iterator& begin, unsigned int nbSamples, unsigned int streamIndex)
|
||||
{
|
||||
if (streamIndex > 1) {
|
||||
@@ -225,6 +232,19 @@ bool BeamSteeringCWModSource::handleMessage(const Message& cmd)
|
||||
|
||||
return true;
|
||||
}
|
||||
else if (MsgConfigureChannelMute::match(cmd))
|
||||
{
|
||||
QMutexLocker mutexLocker(&m_mutex);
|
||||
MsgConfigureChannelMute& cfg = (MsgConfigureChannelMute&) cmd;
|
||||
m_streamSources[0].muteChannel(cfg.getMute0());
|
||||
m_streamSources[1].muteChannel(cfg.getMute1());
|
||||
|
||||
qDebug() << "BeamSteeringCWModSource::handleMessage: MsgConfigureChannelMute:"
|
||||
<< " mute0: " << cfg.getMute0()
|
||||
<< " mute1: " << cfg.getMute1();
|
||||
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
qDebug("BeamSteeringCWModSource::handleMessage: unhandled: %s", cmd.getIdentifier());
|
||||
|
||||
Reference in New Issue
Block a user