Thank you, the command UNINIT will do the job for me!
I am having some problems on execute a program at the controller start an init the variables only once.
i : INTERGER
I put [Main] in HOT START and COLD START Autoexec program but every cold or hot start i restart to 0 even with the '" return to top of program" = FALSE
May be there is another way to do what I need?
this is working!
thank you !
I still have the same error, and in my program $SYSTEM_TIME.$SRV_TOT is not written in yellow like other system variables.
Do you have an idea?
Here is my Karel code:
IF Day <> $SYS_TIME.$DAY THEN
IF $SYSTEM_TIME.SRV_TOT - Memo_SRV_TIME > 480 THEN
TIMER_DAY[i] = $SYSTEM_TIME.SRV_TOT - Memo_SRV_TIME - 480
TIMER_DAY[i] = 0
Day = $SYS_TIME.$DAY
And this is the error:
45 IF $SYSTEM_TIME.SRV_TOT - Memo_SRV_TIME > 480 THEN
Id must be defined before this use. Id: $SYSTEM_TIME
I am looking for a way to count the time when the servos of my robot are on. I found the $SYSTEM_TIME.SRV_TOT variable that would do the job but I can't access this variable with my Karel program. I am on a R30iB mini plus controler.