Spectrum analyser working
This commit is contained in:
@@ -98,23 +98,23 @@ bool Pxx2Pulses::setupSpectrumAnalyser(uint8_t module)
|
||||
addFrameType(PXX2_TYPE_C_POWER_METER, PXX2_TYPE_ID_SPECTRUM);
|
||||
Pxx2Transport::addByte(0x00);
|
||||
|
||||
uint32_t fq = 2500000000;
|
||||
uint32_t fq = 2440000000; // 2440MHz
|
||||
Pxx2Transport::addByte(fq);
|
||||
Pxx2Transport::addByte(fq >> 8);
|
||||
Pxx2Transport::addByte(fq >> 16);
|
||||
Pxx2Transport::addByte(fq >> 24);
|
||||
|
||||
uint32_t span = 10000;
|
||||
uint32_t span = 40000000; // 40MHz
|
||||
Pxx2Transport::addByte(span);
|
||||
Pxx2Transport::addByte(span >> 8);
|
||||
Pxx2Transport::addByte(span >> 16);
|
||||
Pxx2Transport::addByte(span >> 24);
|
||||
|
||||
uint32_t bandwidth = 10000;
|
||||
Pxx2Transport::addByte(bandwidth);
|
||||
Pxx2Transport::addByte(bandwidth >> 8);
|
||||
Pxx2Transport::addByte(bandwidth >> 16);
|
||||
Pxx2Transport::addByte(bandwidth >> 24);
|
||||
uint32_t step = 100000; // 100KHz
|
||||
Pxx2Transport::addByte(step);
|
||||
Pxx2Transport::addByte(step >> 8);
|
||||
Pxx2Transport::addByte(step >> 16);
|
||||
Pxx2Transport::addByte(step >> 24);
|
||||
|
||||
static bool done = false;
|
||||
|
||||
@@ -125,7 +125,6 @@ bool Pxx2Pulses::setupSpectrumAnalyser(uint8_t module)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
bool Pxx2Pulses::setupFrame(uint8_t module)
|
||||
{
|
||||
initFrame();
|
||||
|
||||
Reference in New Issue
Block a user