proof-of-concept spectrum analyzer mode

This commit is contained in:
Jan Käberich 2020-09-17 15:51:20 +02:00
parent 76875c2316
commit 38e73365df
33 changed files with 942 additions and 82 deletions

View file

@ -203,6 +203,14 @@ bool Device::Configure(Protocol::SweepSettings settings)
return SendPacket(p);
}
bool Device::Configure(Protocol::SpectrumAnalyzerSettings settings)
{
Protocol::PacketInfo p;
p.type = Protocol::PacketType::SpectrumAnalyzerSettings;
p.spectrumSettings = settings;
return SendPacket(p);
}
bool Device::SetManual(Protocol::ManualControl manual)
{
Protocol::PacketInfo p;
@ -364,6 +372,9 @@ void Device::ReceivedData()
case Protocol::PacketType::Status:
emit ManualStatusReceived(packet.status);
break;
case Protocol::PacketType::SpectrumAnalyzerResult:
emit SpectrumResultReceived(packet.spectrumResult);
break;
case Protocol::PacketType::DeviceInfo:
lastInfo = packet.info;
lastInfoValid = true;