I have been on the Forum about two years. I read about B4R from Nuts & Volts Magazine. Fred Eddy wrote a few articles about B4A and B4R. I was impressed with B4R after reading a couple of his articles. It seemed easy enough to learn and I was amazed at what a few lines of code could do. I was also interested in the ESP8266. I use to program Microchip PIC controllers in assembler then later C. I still do on occasion. But the power and simplicity of B4X is truly amazing when compared to MPLAB X and the ESP-IDF Build Environment. The folks on this forum have been great as well. Either answering my questions or pointing me in the right direction.
Lately I have been working on an autonomous lawn mower project based on a used power scooter chair. Anyway I decided to build a smaller one to work on the autonomous part in my living room. I got it together and the base would glitch and turn left when I was not sending a udp control packet. I checked my hardware and determined that was not the fault. Then thought maybe it is the B4R code, possibly a bug in the wifi. But hey we all know Erel is better than that ! It turned out to be a glitch in the WII Mote stick I was using for manual control. The Y-axis always sends 137 when the stick is neutral. The X-axis usually always sends 136 but occasionally will glitch and send 137. So I added one line of code after reading the stick with I2c.
If data(0) = 136 Then data(0) = 137 ' Glitches btwn 136 & 137 Y is always 137 so make them = for Neutral
All good now.
P.S. I really like Turtle as well. It got me thinking about some kind of translational reality program like Pac Man. So my daughter can play a game on her tablet, while she is actually mowing our lawn !
Best of Luck to Erel and B4X, as well as all the Forum Members, may we all live Healthy and Happy Lives.
Whenever somebody asks me if I wish I had more $$$. I always so no I will take good health any day, ask Steve Jobs. I am not trying to be funny he had all the money anyone could ever want but all his money could not bring him good health, unfortunately. Take Care !
Lately I have been working on an autonomous lawn mower project based on a used power scooter chair. Anyway I decided to build a smaller one to work on the autonomous part in my living room. I got it together and the base would glitch and turn left when I was not sending a udp control packet. I checked my hardware and determined that was not the fault. Then thought maybe it is the B4R code, possibly a bug in the wifi. But hey we all know Erel is better than that ! It turned out to be a glitch in the WII Mote stick I was using for manual control. The Y-axis always sends 137 when the stick is neutral. The X-axis usually always sends 136 but occasionally will glitch and send 137. So I added one line of code after reading the stick with I2c.
If data(0) = 136 Then data(0) = 137 ' Glitches btwn 136 & 137 Y is always 137 so make them = for Neutral
All good now.
P.S. I really like Turtle as well. It got me thinking about some kind of translational reality program like Pac Man. So my daughter can play a game on her tablet, while she is actually mowing our lawn !
Best of Luck to Erel and B4X, as well as all the Forum Members, may we all live Healthy and Happy Lives.
Whenever somebody asks me if I wish I had more $$$. I always so no I will take good health any day, ask Steve Jobs. I am not trying to be funny he had all the money anyone could ever want but all his money could not bring him good health, unfortunately. Take Care !