-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added: -antenna power -chart markers to show frequency/power
- Loading branch information
Showing
12 changed files
with
154 additions
and
30 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule hackrf
updated
2 files
+4 −1 | host/hackrf-tools/src/hackrf_sweep.c | |
+1 −1 | host/hackrf-tools/src/hackrf_sweep.h |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/hackrf-sweep/src-java/jspectrumanalyzer/core/PowerCalibration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package jspectrumanalyzer.core; | ||
|
||
public class PowerCalibration | ||
{ | ||
public final double offset_dB; | ||
public final double gain; | ||
public PowerCalibration(double expectedPower_dBm, double measuredPower_dBm, double measuredAtGain) | ||
{ | ||
offset_dB = expectedPower_dBm - measuredPower_dBm; | ||
this.gain = measuredAtGain; | ||
} | ||
public double getOffset_dB(double gain){ | ||
return offset_dB + (this.gain - gain); | ||
} | ||
|
||
public static void correctPower(PowerCalibration cal, double gain, FFTBins bins){ | ||
// bins.fftBinWidthHz | ||
double offset = cal.getOffset_dB(gain); | ||
for (int i = 0; i < bins.sigPowdBm.length; i++) { | ||
bins.sigPowdBm[i] += offset; | ||
} | ||
} | ||
} |
Oops, something went wrong.