You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
@per1234 just updated the platform, replacing readAccelerometer with readAcceleration. Thanks for the reminder, it had avoided previous updates somehow!
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
which generates the following error
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.
The text was updated successfully, but these errors were encountered: