Hello,
In my karel program i use the CALL instruction to call a TP program.
But if the TP program is not loaded I get an error.
How can i test if the TP program is loaded before calling ?
Thanks ahead.
Hello,
In my karel program i use the CALL instruction to call a TP program.
But if the TP program is not loaded I get an error.
How can i test if the TP program is loaded before calling ?
Thanks ahead.
I believe there is no dedicated function for checking if a program exists (ie is loaded onto the robot), but you could easily test it using the GET_ATTR_PRG procedure. Just use any of the attributes (for example AT_PROG_TYPE) and check if the returned status is 0 (or at least is not 7073)
Thanks !!