How can I increase enabled ref positions. I set for 20 ref position, but only first 10 will enable.
thanx
ref position
-
slamcity -
October 23, 2014 at 3:42 PM -
Thread is Resolved
-
-
Pretty sure it is this variable:
$REFPOSMASK[1].$MAXREFPOSEN
-
you cannot access that variable on 8.3 for some reason, however you can still change $REFPOSMAXNO and then change the values inside each field of $REFPOS1[#]
interestingly enough this lets you change the output signal to somthing other than a RO or DO. the default setting for $REFPOS1[1].$DOUT_TYPE = 2 (Digital Out) this can be changed to anything you need. for example 35 sets it to a Flag. $REFPOS1[1].$DOUT_INDX = output number desired.
for a full ist of io types you can check out kliotyps.kl. this file should be included with any installation of Roboguide products including OLPC or WinOLPC.
-
Same on v8.1.
Even if you can't access it directly from the teach pendant system variables screen, you can still write to it using a TP program.
By default it is set to 10, meaning only 10 ref positions are allowed to be active at one time.
Here is a program to set it to 20:
-
i suspect it will get fixed in an auto update. 8.30/03 does not let me even run that program. i cant even view the variable in roboguide either. i didnt try in karel yet, but after it reboots it must update the mask itself as i can modify the ref pos from the menus.
-
Thanx, It worked perfect!!!