https://dpaste.de/yh5J
Global variable "THRESH" is declared outside functions. Compiler doesn't throw any error.
Program runs, however the robot still moves forward because he doesn't know what variable "THRESH" is.
I fixed it by moving these 2 variables into function "task_pohyb"
https://dpaste.de/yh5J
Global variable "THRESH" is declared outside functions. Compiler doesn't throw any error.
Program runs, however the robot still moves forward because he doesn't know what variable "THRESH" is.
I fixed it by moving these 2 variables into function "task_pohyb"