mirror of
https://github.com/xdsopl/robot36.git
synced 2026-01-28 02:14:15 +01:00
added experimental PD290 support
full 616 lines are supported but width is 640 pixels instead of 800 to avoid breaking other modes. that means the aspect ratio is wrong for PD290 at the moment.
This commit is contained in:
parent
2d74f33bb6
commit
2c3c6b1293
|
|
@ -115,6 +115,7 @@ public class Decoder {
|
|||
syncPulse20msModes.add(new PaulDon("160", 98, 512, 400, 0.195584, sampleRate));
|
||||
syncPulse20msModes.add(new PaulDon("180", 96, 640, 496, 0.18304, sampleRate));
|
||||
syncPulse20msModes.add(new PaulDon("240", 97, 640, 496, 0.24448, sampleRate));
|
||||
syncPulse20msModes.add(new PaulDon("290", 94, 640, 616, 0.2288, sampleRate));
|
||||
}
|
||||
|
||||
private double scanLineMean(int[] lines) {
|
||||
|
|
|
|||
|
|
@ -457,7 +457,7 @@ public class MainActivity extends AppCompatActivity {
|
|||
scopeBuffer = new PixelBuffer(640, 2 * 1280);
|
||||
freqPlotBuffer = new PixelBuffer(256, 2 * 256);
|
||||
peakMeterBuffer = new PixelBuffer(1, 16);
|
||||
imageBuffer = new PixelBuffer(640, 496);
|
||||
imageBuffer = new PixelBuffer(640, 616);
|
||||
createScope(config);
|
||||
createFreqPlot(config);
|
||||
createPeakMeter();
|
||||
|
|
@ -545,6 +545,10 @@ public class MainActivity extends AppCompatActivity {
|
|||
setMode(R.string.pd240);
|
||||
return true;
|
||||
}
|
||||
if (id == R.id.action_force_pd290) {
|
||||
setMode(R.string.pd290);
|
||||
return true;
|
||||
}
|
||||
if (id == R.id.action_force_martin1) {
|
||||
setMode(R.string.martin1);
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -62,6 +62,9 @@
|
|||
<item
|
||||
android:id="@+id/action_force_pd240"
|
||||
android:title="@string/pd240" />
|
||||
<item
|
||||
android:id="@+id/action_force_pd290"
|
||||
android:title="@string/pd290" />
|
||||
</menu>
|
||||
</item>
|
||||
<item android:title="@string/martin_modes">
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
<string name="pd160" translatable="false">PD 160</string>
|
||||
<string name="pd180" translatable="false">PD 180</string>
|
||||
<string name="pd240" translatable="false">PD 240</string>
|
||||
<string name="pd290" translatable="false">PD 290</string>
|
||||
<string name="martin1" translatable="false">Martin 1</string>
|
||||
<string name="martin2" translatable="false">Martin 2</string>
|
||||
<string name="scottie1" translatable="false">Scottie 1</string>
|
||||
|
|
|
|||
Loading…
Reference in a new issue