Skip to content

Declaring global variable #8

Description

@Adman

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions