Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add L_band option, fast scanning mode option, customizable min/max frequency, fix rssi.value if >127, show rssi, change app name to Frequency scanner #5

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

singlag
Copy link

@singlag singlag commented Feb 10, 2023

add L_band option, fast scanning mode option, change app name to Frequency scanner

@singlag singlag changed the title add L_band option, fast scanning mode option, change app name to Frequency scanner add L_band option, fast scanning mode option, customizable min/max frequency, fix rssi.value if >127, show rssi, change app name to Frequency scanner Feb 11, 2023
@ethomas997 ethomas997 requested a review from pulquero February 18, 2023 02:28
@pulquero
Copy link
Collaborator

Can the RX5800 even go as low as L-band?

@HazardCreative
Copy link
Member

According to the datasheet, even R1 is out of spec.
RTC6715 datasheet : 5725–5865
RX5808 : 5705–5945

@ethomas997
Copy link
Member

In general the modules can operate down in those 'L' frequencies; just not as efficiently

@singlag
Copy link
Author

singlag commented Feb 21, 2023

I connect my arduino board to hawkeye little pilot 5inch fpv monitor which is rx5808 inside, it come with 48channel preset include L-band

20230221_134853

@@ -35,10 +35,10 @@
import java.util.concurrent.TimeUnit;

public class MainActivity extends AppCompatActivity {
private static final int MIN_FREQ = 5645;
private static final int MAX_FREQ = 5945;
private static int MIN_FREQ = 5600;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These variables should probably not be static any more given they are mutable within an instance.

@BindView(R.id.plot)
XYPlot plot;
@BindView(R.id.messages)
TextView msgLabel;
@BindView(R.id.RSSI_NAME)
TextView RSSI_NAME;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Camel case please for instance variables.

@BindView(R.id.RSSI_Value)
TextView RSSI_Value;
@BindView(R.id.MIN_MHZ)
EditText MIN_MHZ;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not obvious from the name what the purpose of MIN/MAX_MHZ vs MIN/MAX_FREQ.

}

@OnCheckedChanged(R.id.LBandSwitch)
public void onLBandSwitch() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to have presets for every band, maybe something for a future PR.

@@ -75,6 +75,9 @@ public LapStats readLapStats(long currentTime) throws IOException {
byte laps = buf[0];
int msSinceLastLap = read16(buf, 1);
stats.rssi = buf[3];
if (stats.rssi < 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not quite sure what this is about. Note rssi < 0 (unsigned 0xFF) is used to indicate an error. Makes better sense to throw an exception or skip the reading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants