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

removed useless lines #8

Merged
merged 0 commits into from
Aug 22, 2022
Merged

removed useless lines #8

merged 0 commits into from
Aug 22, 2022

Conversation

Rocketct
Copy link
Contributor

@Rocketct Rocketct commented Jan 28, 2020

removed useless lines due to legacy from Arduino_LSM6DSM

Checking the Figure 6. Accelerometer composite filter on the LSM6DS3's datasheet: , this line have only the effect of enable the LOW_PASS_ON_6D and setting to 1 a bit that should be set to 0 because reserved, i'll remove because added only for redundancy in the other library and here don't make sense to exist.

cc/ @sandeepmistry just checked the datasheet this lines are unnecessary

fix #7

src/LSM6DS3.cpp Outdated
@@ -91,9 +91,6 @@ int LSM6DS3Class::begin()
// set gyroscope power mode to high performance and bandwidth to 16 MHz
writeRegister(LSM6DS3_CTRL7_G, 0x00);

// Set the ODR config register to ODR/4
writeRegister(LSM6DS3_CTRL8_XL, 0x09);
Copy link
Contributor

Choose a reason for hiding this comment

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

@Rocketct do we want to consider updating the incorrect comment and change the value to 0x01 to enable LOW_PASS_ON_6D.

@Rocketct Rocketct changed the title remouved useless lines removed useless lines Jul 8, 2020
@CLAassistant
Copy link

CLAassistant commented Apr 9, 2021

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Rocketct Rocketct merged commit f079413 into arduino-libraries:master Aug 22, 2022
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: code Related to content of the project itself labels Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possbile error in LSM6DS3.cpp
4 participants