This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revisionBoth sides next revision |
buzz_kh4 [2018/03/21 00:14] – root | buzz_kh4 [2019/03/31 19:39] – [Sensors] ilpincy |
---|
| |
* **Light sensors** | * **Light sensors** |
* The Khepera IV proximity sensor is a set of 8 infrared emitter/receiver pairs distributed regularly in a ring around the robot. The sensors are numbered 0 to 7. Sensor 0 looks straight ahead, and the numbers increase counterclockwise when looking at the robot from above. | * The Khepera IV light sensor is a set of 8 infrared emitter/receiver pairs distributed regularly in a ring around the robot. The sensors are numbered 0 to 7. Sensor 0 looks straight ahead, and the numbers increase counterclockwise when looking at the robot from above. |
* ''light'' is the Buzz table that contains the light readings. Each element of this table (e.g., ''light[0]'', ''light[1]'', ...) is in turn a table that contains two elements: | * ''light'' is the Buzz table that contains the light readings. Each element of this table (e.g., ''light[0]'', ''light[1]'', ...) is in turn a table that contains two elements: |
* ''angle'', which corresponds to the angle (expressed in radians) at which the sensor is located on the body of the robot | * ''angle'', which corresponds to the angle (expressed in radians) at which the sensor is located on the body of the robot |