Easy Programming Question

Hello Guys.I am new to forum and i have a problem.I have this code and i am getting this error:

init_imu was not declared in this scope.I don’t know what to do.Please help me.Thanks

SelfBalance_robot0_67.ino (12.3 KB)

JKO1992: init_imu was not declared in this scope.I don't know what to do.

Short answer: declare it

Slightly longer answer: post the sketch for all to see

Declare init_imu in that scope, problem solved.

You’re right, it was an easy question.

Thank you for your replies.It is declared i think but i still getting the error.I upload the code

Declare it in the correct scope

How to do that?Sorry but i am newbie to programming

Post your sketch, and maybe someone can help you.
Hard to say where if we can’t see it.

JKO1992: init_imu was not declared in this scope.I don't know what to do.Please help me.Thanks

You seem to have added the code to your Original Post after other Replies. That makes it hard to follow the discussion. Post things in the natural chronological order.

You need to post the exact error message including the line number.

...R

You have so many non-standard libraries being used that no one is going to be inclined to hunt them up, download them, and try compiling your code.

So, you need to post the exact error messages.

Includestatementshavespaces.