Error while uploading mpu 6050 chipset program in arduino

hi everyone

i am new to xod. now i am working in a self balancing robot. but while testing mpu 6050 in arduino uno , i got compiling error and in calibration there was no output. i am using gabbapeople mbotlib latest version. please help …

this is the error message
Begin compiling code for the board Arduino Uno :package:

C:\Users\JARVI~1.S\AppData\Local\Temp\xod_temp_sketchbookplpEXQ\xod_1599917840268_sketch\xod_1599917840268_sketch.ino: In instantiation of ‘void xod::gabbapeople__mbot_lib__mpu6050_yrp_linear_accel::Node<constant_input_INT>::evaluate(xod::gabbapeople__mbot_lib__mpu6050_yrp_linear_accel::Node<constant_input_INT>::Context) [with unsigned char constant_input_INT = 12; xod::gabbapeople__mbot_lib__mpu6050_yrp_linear_accel::Node<constant_input_INT>::Context = xod::gabbapeople__mbot_lib__mpu6050_yrp_linear_accel::Node<12>::ContextObject*]’:
C:\Users\JARVI~1.S\AppData\Local\Temp\xod_temp_sketchbookplpEXQ\xod_1599917840268_sketch\xod_1599917840268_sketch.ino:1676:36: required from here
C:\Users\JARVI~1.S\AppData\Local\Temp\xod_temp_sketchbookplpEXQ\xod_1599917840268_sketch\xod_1599917840268_sketch.ino:1443:43: error: invalid use of non-static member function ‘void xod::gabbapeople__mbot_lib__mpu6050_yrp_linear_accel::Node<constant_input_INT>::dmpDataReady() [with unsigned char constant_input_INT = 12]’
PCintPort::attachInterrupt(INTERRUPT_PIN, dmpDataReady, RISING);
C:\Users\JARVI~1.S\AppData\Local\Temp\xod_temp_sketchbookplpEXQ\xod_1599917840268_sketch\xod_1599917840268_sketch.ino:1419:10: note: declared here
void dmpDataReady() {

Error during build: exit status 1
Compilation failed
Command Process exited with code 1
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

@sibhuashwath Hey!

I’ve made some changes today. For Arduino Uno check this out.

No need to use the mbot lib.
  1. Connect MPU6050 to Arduino. Link the INT pin. For example, to Arduino pin 2.
  2. Flash the example calibration patch in debug mode.
  3. Push tweak to start calibration and watch the console log.
  4. Do not touch the IMU board! Please protect it from any movement.
  5. Wait until 6/6 calibrations are done. Write down the offsets.
  6. Flash the second example patch with your offsets in debug mode.
  7. Monitor the RPY and accels.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.