Sumobot WX tutorial code for Ir takes 20 sec to update - problem???
From this tutorial: learn.parallax.com / tutorials / sumo WX / Ir detect, using this download file: SumoBot-Front-IR-Terminal.svg.
Values displayed on terminal are correct. But update is every 20+ seconds. In code I can only see delays of about 100 ms. (Contents of the green "User Defined Code" are a mystery.) Then after first few displays, the boilerplate labels don't appear correct. Then only some or both values appear.
Problem is worse for lower values (close reflector) than higher values (no reflector).
Any idea of how to get sensing down to < 1 sec?
I once had something like this where baud did not match and every now and then they came into phase to transmit. But I don't see buad setting for terminal blocks or for terminal.
I re-seated both Tx and Rx components.
Thanks.
Comments
I can't seem to duplicate those symptoms. The function IR Front Terminal block has 350 ms pauses, and I'm guessing function IR Front takes about 50 ms. So, the updates should happen at around 2.25 Hz.
If you have a Windows Machine, a quick test to check if your bot or BlocklyProp Solo is the cause would be to try displaying the data with Parallax Serial Terminal. The baud rate is 115200, and here's a link to the download:
https://www.parallax.com/package/parallax-serial-terminal/
Also, let's rule out some of the basics:
Re-download the file from the link below, open it with BlocklyProp Launcher, and load it into the FLiP (unmodified):
https://learn.parallax.com/tutorials/robot/sumobot-wx/ir-sumobot-wx-opponent-detection-and-tracking/terminal-ir-distance
Make sure to open BlocklyProp Solo by using the blue BlocklyProp Solo button in the BlocklyProp Launcher.