class MPU6050 has no member named begin
hi all,
as working out scripts wich me make winddirection meter gy-87 calibrate compass sensor on board.
i using script "hmc5883l_calibrate_mpu6050" korneliusz jarzebski.
i fault "class mpu6050 has no member named begin"
/*
calibrate hmc5883l + mpu6050 (gy-86 / gy-87). output hmc5883l_calibrate_processing.pde
read more: http://www.jarzebski.pl/arduino/czujniki-i-sensory/3-osiowy-magnetometr-hmc5883l.html
git: https://github.com/jarzebski/arduino-hmc5883l
web: http://www.jarzebski.pl
(c) 2014 korneliusz jarzebski
*/
#include <wire.h>
#include <hmc5883l.h>
#include <mpu6050.h>
hmc5883l compass;
mpu6050 mpu;
int minx = 0;
int maxx = 0;
int miny = 0;
int maxy = 0;
int offx = 0;
int offy = 0;
void setup()
{
serial.begin(9600);
// initialize mpu6050
while(!mpu.begin(mpu6050_scale_2000dps, mpu6050_range_2g))
{
delay(500);
}
how slove error?
any apreciated.
kind regards,
ilioss
as working out scripts wich me make winddirection meter gy-87 calibrate compass sensor on board.
i using script "hmc5883l_calibrate_mpu6050" korneliusz jarzebski.
i fault "class mpu6050 has no member named begin"
/*
calibrate hmc5883l + mpu6050 (gy-86 / gy-87). output hmc5883l_calibrate_processing.pde
read more: http://www.jarzebski.pl/arduino/czujniki-i-sensory/3-osiowy-magnetometr-hmc5883l.html
git: https://github.com/jarzebski/arduino-hmc5883l
web: http://www.jarzebski.pl
(c) 2014 korneliusz jarzebski
*/
#include <wire.h>
#include <hmc5883l.h>
#include <mpu6050.h>
hmc5883l compass;
mpu6050 mpu;
int minx = 0;
int maxx = 0;
int miny = 0;
int maxy = 0;
int offx = 0;
int offy = 0;
void setup()
{
serial.begin(9600);
// initialize mpu6050
while(!mpu.begin(mpu6050_scale_2000dps, mpu6050_range_2g))
{
delay(500);
}
how slove error?
any apreciated.
kind regards,
ilioss
what compiler complaining fact there no method named .begin() in class "mpu6050" defined in mpu6050.h.
i take @ this mpu6050.h file in github. if it's same .h using, correct method call .initialize() think. there no method in file named .begin().
i take @ this mpu6050.h file in github. if it's same .h using, correct method call .initialize() think. there no method in file named .begin().
Arduino Forum > Using Arduino > Programming Questions > class MPU6050 has no member named begin
arduino
Comments
Post a Comment