posreg by tp

  • hello
    i looking for une simple file tp in ls or pe (rj3)
    i want to write a posreg by program


    name of pos reg??
    PR[2]:='tot' ;
    xyz rx ry rz like
    PR[2,1:toto]:=100.1' ;


    for this i dont know
    Group: 1 Config: F U T, 127, -1, -1



    i think it like that


    can someone send me one file with the good syntax
    tanks
    raynald

  • If i understand your exemple, you want to force the X value of the position stored in PR[2] ?


    You also don't know what to do with config.


    Want to help, but need to clarify.


    :hmmm:

    If it starts well the first time, you have not checked all !

  • As far as I know there is no way to change a position register's config values with TP commands. What you might be able to to is manually configure a few position registers with different config values, and then use TP commands to copy those registers into the ones you want to use. The config values will be copied as well. You can then adjust the XYZWPR values however you want.

  • The only you can set the PR config is by using Karel. If you make the karel accept arguments, you can include what config you want with the program call.


    i.e. CALL SETCONFGI(1,1,1,0,0,1)

Advertising from our partners