Hi, my team made a menu that pretty much consists of 8 square buttons evenly distributed, nothing special. We just adapted a RobotMesh Studio example from here: https://www.robotmesh.com/studio/5be40c6ec8f17a1f5795f501. Basically, “if the x of the press is to the left of this vertical line and the y is to the top of that horizontal line, then run this auton, else if…” type of deal.
Most of the time things work, but sometimes the press does not register properly, resulting in wrong autonomous code being called. We traced it to the fact that the Y position of the press is not always accurate and sometimes shows as 241 no matter where the finger press is. 241 is outside the screen? If we keep the circles generated at the position of press as in the example linked, you can clearly see a bunch of circles accumulated at the bottom of the screen.
The only “different” thing we do is we use the screen flipped (properly selected in setup) for design reasons.
We also tried to play with the sys.sleep() in the example (just a pause after a press is detected) but results are weird. We noticed that if we press firmly and keep the finger on for half a second, it is a bit more consistent, but who remembers to do that?
Why would brain.screen.y_position() be 241 on a press? - brain.screen.x_position() registers correctly 100% of the time.
Thanks.