Greetings of the day everyone ,
Iam still learning karel ,
do you guys know whats the karel code for the 12. stop type in Cartesian Position Check in fancu robots
Thanks
Austin Paul
Greetings of the day everyone ,
Iam still learning karel ,
do you guys know whats the karel code for the 12. stop type in Cartesian Position Check in fancu robots
Thanks
Austin Paul
You may be able to find a system variable that corresponds to the Stop type as defined in the DCS settings. Unfortunately the documentation of these System variables is poor. But you can try experimenting and see if anything matches with what you need.
The system variables themselves can be found under Hamburger Menu -> System -> Variables. You will want to look under something like $DCSS or similar.
If you find the system variable that matches what you are looking for, you can use the following code to retrieve it in Karel:
entry, status : INTEGER
val : (will depend on the type - can fx be BOOL or INTEGER)
GET_VAR(entry, '*SYSTEM*', '$variableName.$subcategoryOfTheVariable', val, status)
The current value of the variable will be saved in val variable.