forked from robocomp/LearnBlock
-
Notifications
You must be signed in to change notification settings - Fork 2
Simple program 2.0
Nihal Mittal edited this page Mar 10, 2020
·
6 revisions
This type of program often have only one type of block where is all code, its name is main.
Below is shown how you can create this type of programs.
In folder learnbot_dsl/learnbotCode/examples/ there are some examples. We can open the example follow_red_line.blockProject with the program Learnblock.
In order to execute this example you shouldn't check the checkbox Used Events.
This type of program have a variable with the time of execution of all program. Exist a function elapsedTime(umbral) that retunred true when global time > umbral.