假设一张圆盘像唱机上的唱盘那样转动。这张盘一半是黑色,一半是白色。假设你有数量不限的一些颜色传感器。要想确定圆盘转动的方向,你需要在它周围摆多少个颜色传感器﹖它们应该被摆放在什么位置﹖
Two sensors are enough. Put them side by side along any track, i.e., any circle on the disk with the disk's center as its center. Say the sensors are A and B clockwise. After both sensors pickup the same color, if A detects the change of color before B does, then the disk rotates clockwise. Otherwise, the disk rotates counter-clockwise. |
欢迎光临 珍珠湾ART (http://zzwav.com/) | Powered by Discuz! X3 |