I have the Ultimate 2.0 robot kit from Make Block. I am working with the balancing robot. The sample program balances but drifts forward. Joop Brokking has a program for the balancing robot that does not use any libraries. By combining the two I should be able to have enough control to solve my problem. To adjust the program, I must bypass some of the Makeblock libraries to have access to the code and variables. My project is to configure the code without calling the libraries “MeMegaPi.h”, “MeGyro.h” or “MeGyro.cpp”. “MeMegaPi.h” consists mostly of INCLUDES. “MeGyro.h” establishes the DEFINEs and variables. And “MeGyro.cpp” contains the code for the gyro. At this point, I am trying to replace the library call to Gyrobegin() without success. I have transferred the DEFINEs, the variables, and the code to the main program. But, I can not remove the Gyro.begin() command.
Does anyone have an idea what I may have missed?
MeGyro.cpp (14.7 KB)
MeGyro.h (10.2 KB)
MeMegaPi.h (3.96 KB)
Balancing_Robot_7_27_2018B.ino (285 KB)