Hello, I have been testing the WiFi dongle by sending commands and I found that after sending several of them Bittle gets blocked and won't listen to any other command I send, being necessary to reboot it.
When this occurs, gyroscope seems to be disabled and using the IR controller won't work neither.
It also gives me the impression there is a command buffer and sometimes, when rebooting, all those commands that I have tried to send were stored and now are sent all at once to Bittle, causing it to have a weird posture.
This is what I did the last time it happened to me:
Turn on Bittle
Wait for 30 seconds
Send Sit command
Send Balance command
Send Forward command <-- not working anymore
Has this happened to anyone else?
There's a serial parser section in Bittle's Arduino code. Maybe it's stuck by some broken packets? Maybe I should add some validation logic in the parser.
I was going to start debugging to try to fix (or at least identify) what is wrong, but I found my Bittle isn't receiving/processing commands (through wifi) anymore.
This is shown when I boot up Bittle:
Then I tried to send some commands (as you can see, the rest api website is up and can receive commands):
Notice how Bittle behaves when I turn it upside down (its left leg wont end in the correct position):
This is what was shown in Serial monitor:
I don't know if what I posted can help you to identify what could be causing the problem
I have observed a similar bug after sending tens of commands. I didn't wait for 30 seconds.