Skip to content

Website - Code Error - Opla IoT Kit - Getting Started Project - Get To Know The Carrier - Acceleration Reading #11009

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

Closed
alexandru-cohal opened this issue Nov 28, 2020 · 3 comments
Assignees
Labels
Component: Documentation Related to Arduino's documentation content Type: Bug

Comments

@alexandru-cohal
Copy link

The Opla IoT Kit "Get To Know The Carrier" project is available on this page:
https://opla.arduino.cc/opla/module/carrier/lesson/get-to-know-the-carrier

In the "Core programming terms" section, "Loop" subsection, there is a code snippet with commands for reading the sensors available on the MKR IoT Carrier. For reading the acceleration provided by the IMU sensor, the following command is provided

carrier.IMUmodule.readAccelerometer(accelerometer_x, accelerometer_y, accelerometer_z); //read accelerometer (x, y z)

which generates the following error

error: 'class LSM6DS3Class' has no member named 'readAccelerometer'; did you mean 'readAcceleration'?

As suggested in the error and also explained in the documentation of the LSM6DS3 library of the IMU sensor, the readAccelerometer method should be replaced with the readAcceleration method.

I am using the Arduino Web Editor with the Arduino_MKRIoTCarrier Library version 0.9.6.

@per1234 per1234 added Component: Documentation Related to Arduino's documentation content Type: Bug labels Nov 28, 2020
@karlsoderby
Copy link

Thank you @alexandru-cohal for reporting. This issue will be fixed shortly.

@per1234
Copy link
Collaborator

per1234 commented Dec 24, 2020

@karlsoderby did you ever get a chance to fix this error? I see it is still there on the tutorial.

@karlsoderby
Copy link

@per1234 just updated the platform, replacing readAccelerometer with readAcceleration. Thanks for the reminder, it had avoided previous updates somehow!

@per1234 per1234 closed this as completed Jan 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Related to Arduino's documentation content Type: Bug
Projects
None yet
Development

No branches or pull requests

3 participants