get values mpu6050
i'm building quadcopter mpu6050. i'm able values mpu6050 gyro sketch.
in sketch writen:
serial.print(f("accel x,y,z: "));
serial.print(accel_t_gyro.value.x_accel, dec);
serial.print(f(", "));
serial.print(accel_t_gyro.value.y_accel, dec);
serial.print(f(", "));
serial.print(accel_t_gyro.value.z_accel, dec);
serial.println(f(""));
i want use printed value in variable when use 'accel_t_gyro.value.x_accel' in variable error:
request member 'value' in 'accel_t_gyro', of non-class type 'int'
how can fix this?
in sketch writen:
serial.print(f("accel x,y,z: "));
serial.print(accel_t_gyro.value.x_accel, dec);
serial.print(f(", "));
serial.print(accel_t_gyro.value.y_accel, dec);
serial.print(f(", "));
serial.print(accel_t_gyro.value.z_accel, dec);
serial.println(f(""));
i want use printed value in variable when use 'accel_t_gyro.value.x_accel' in variable error:
request member 'value' in 'accel_t_gyro', of non-class type 'int'
how can fix this?
your attached sketch compiles me no errors.
please try trim program down smallest possible 1 shows error, paste between [code][/code] tags instead of attaching it.
please try trim program down smallest possible 1 shows error, paste between [code][/code] tags instead of attaching it.
Arduino Forum > Using Arduino > Sensors > get values mpu6050
arduino
Comments
Post a Comment