-
Notifications
You must be signed in to change notification settings - Fork 814
Fix #1823 xy plot working fine in oscilloscope #1828
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
Conversation
|
|
||
| if (scienceLab.isConnected() && viewIsClicked && isXYPlotSelected) { | ||
| if (scienceLab.isConnected() && isXYPlotSelected) { | ||
| Log.d("xy plot", "called"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I added for debugging
| HashMap<String, double[]> data; | ||
| if ("CH2".equals(xyPlotXAxisChannel) || "CH2".equals(xyPlotYAxisChannel)) { | ||
| analogInput = params[0]; | ||
| data = scienceLab.captureTwo(1000, 10, analogInput, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideal method would be this. With current implementation it fetches one trace and then fetch the second trace after sometime; not simultaneous. CaptureTwo fetches them simultaneously.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. will make the change
… into oscilloscope_xy_plot
… into oscilloscope_xy_plot
|
@CloudyPadmal the |
I looked through the code for you because you couldn't understand. If you compare the changes you made with the previous code, it's already there anyways.
If the channel readings are giving weird outputs, may be increase timeout/sleep periods in methods in
I don't remember how many times I've said it, take only |
|
@CloudyPadmal thanks for your help and time. Will keep your advice in mind regarding desktop app. Sorry for inconvenience caused |
|
@CloudyPadmal have updated the apk and gif. Have a look. Thanks |
Fix fossasia#1823 xy plot working fine in oscilloscope
Fixes #1823
Changes: Fixed xyPlot code in oscilloscope
Screenshot/s for the changes:

Checklist: [Please tick following check boxes with
[x]if the respective task is completed]strings.xml,dimens.xmlandcolors.xmlwithout hard-coding themstrings.xml,dimens.xmlorcolors.xmlAPK for testing:
osc_xy_plot3.zip