Using this function, you can set the IR threshold for the default IR sensor or the one that connects to an analog pin.
setirthreshold(‘left’,1200)
Function Definition: setirthreshold(set_sensor = 'left', set_value = 750)
Name | Type | Description | Expected Values | Default Value |
---|---|---|---|---|
set_sensor | string | Set sensor of robot | 'left', 'right' | 'left' |
set_value | int | Set average value of IR | 750 | 750 |
Using this function, you can set the IR threshold for the default IR sensor or the one that connects to an analog pin.
setirthreshold(‘left’,1200)
Copyright 2024 – Agilo Research Pvt. Ltd. All rights reserved – Terms & Condition | Privacy Policy