inverted pitch with out-of-the-box bala and unmodified examples
Closed this issue · 2 comments
i received the M5Stack Bala just 2 weeks ago and it was working fine. after uploading any of the Bala examples through the Arduino IDE, Bala would immediately fall.
upon realizing that the motors spin in the opposite direction of which they're supposed to, i searched for a way to invert the pitch and was able to make it balance successfully again.
in M5Bala.cpp replacing (line 148 & 149)
if (imu_id == MPU9250_ID)
pitch = -pitch;
with
if (imu_id != MPU9250_ID)
pitch = -pitch;
fixed the issue.
only documented the issue in case someone else has the same problem.
I'm enjoying M5Stack quite a lot so far.
I'm uncertain whether the changes i made overlook something. as M5Bala falls to one side on a very slow motor speed after a while. the motor speed appears to hit some kind of boundary.