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

feat: recording functionality in compass instrument #1555

Merged
merged 1 commit into from Mar 2, 2019

Conversation

Smit2010
Copy link
Contributor

@Smit2010 Smit2010 commented Feb 19, 2019

Fixes #1371 Recording functionality added in compass instrument

Changes: added function of record data in CompassActivity and created a new class of compassData

Screenshot/s for the changes:

Checklist: [Please tick following check boxes with [x] if the respective task is completed]

  • I have used resources from strings.xml, dimens.xml and colors.xml without hard-coding them
  • No modifications done at the end of resource files strings.xml, dimens.xml or colors.xml
  • I have reformatted code in every file included in this PR [CTRL+ALT+L]
  • My code does not contain any extra lines or extra spaces
  • I have requested reviews from other members

APK for testing:app-debug.zip

@abhinavraj23 abhinavraj23 added the Status: Review Required Requested reviews from peers and maintainers label Feb 20, 2019
compassLogger.writeCSVFile("Timestamp,DateTime,Bx,By,Bz");
recordData();
writeHeaderToFile = !writeHeaderToFile;
} else{
Copy link
Member

Choose a reason for hiding this comment

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

@Smit2010 Please reformat the code, it shouldn't be this way.

Copy link
Member

@abhinavraj23 abhinavraj23 left a comment

Choose a reason for hiding this comment

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

Nice work @Smit2010 👍

}

public String getBx() {
return Bx;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you append this. to these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you suggesting to append this. to getters also or only in setters? @CloudyPadmal

public CompassData() {
}

public CompassData(String x, String y, String z) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use standard practice in object creation. We use the same name and use this key word to refer to the class instance. Change x y z to Bx By and Bz

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated. @CloudyPadmal

@Smit2010 Smit2010 force-pushed the development branch 3 times, most recently from b81a5ea to 417435d Compare February 28, 2019 14:58
Copy link
Member

@abhinavraj23 abhinavraj23 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @Smit2010 👍

@abhinavraj23 abhinavraj23 merged commit 8daef14 into fossasia:development Mar 2, 2019
vansha10 pushed a commit to vansha10/pslab-android that referenced this pull request Mar 24, 2019
@CloudyPadmal CloudyPadmal removed the Status: Review Required Requested reviews from peers and maintainers label May 17, 2019
neel1998 pushed a commit to neel1998/pslab-android that referenced this pull request Jul 30, 2019
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.

No recording data functionality in Compass instrument
3 participants