NischalSehrawat / Self-Balancing-Segway-Robot

Control an inverted pendulum (Segway robot) with an Arduino & RaspberryPi
25 stars 1 forks source link

No need to wait after Wire.requestFrom(). #1

Closed Koepel closed 5 years ago

Koepel commented 5 years ago

Please remove the waiting after a Wire.requestFrom(). These lines: while(Wire.available() < 6); Explanation: Common-mistakes#1 Those lines are in the files "Self-Balancing-Segway-Robot/Arduino_Implementation/Fresh_Bal_Bot/Fresh_Bal_Bot.ino" and "Self-Balancing-Segway-Robot/Arduino_Files/Arduino_Python_Communication.ino".

NischalSehrawat commented 5 years ago

Thank you for reviewing the code, I have now commented it out. The code is still in making, so its still not complete and needs a lot of improvements.