VIRTUAL ROBOT DETECTION

  • Hi i_robot72

    in the past I always used the "$MC_PATH" variable for this, which only exists on virtual robots.

    You can intercept with Karel if this is present.


    But in TP this is not possible.


    Since some time I use in TP for this : "$NULL_CYCLE"

    On a virtual controller this is normally zero and does not change!!!


    On the real controller it changes its value between MinINT and MaxINT.

    So you can check this against zero to determine that the controller is virtual.


    Best regards

    PnsStarter

Advertising from our partners