by Pev » Wed Aug 16, 2006 2:20 pm
by Pev
Wed Aug 16, 2006 2:20 pm
kif wrote:No idea ??
I want limited my servo deplacement with this command : ex : $limit(00,20,95)
$limit(01,18,99)
etc....
i have error syntax = $limit not good ???
but this command exist in the manual robobasic ???
Best regards
Have just had a play the $DEVICE command. This is what I have found.
IF I put
$DEVICE MRC2000
in my code I get a syntax error. If I put
'$DEVICE MRC2000
I don't get the syntax error but I cannot compile the code and when I check the controller type in the RoboBasic GUI it has been set to the MRC-2000 controller.
Working on this basis it would seem that although the command
'$DEVICE MRC2000
appears in green and looks like a comment it is actually actioned when you compile the code. Which is kind of weird.
Can I suggest you try the same with the $LIMIT command and see if it works. That would mean the correct syntax for the command example you gave would be
'$LIMIT 00,20,95
'$LIMIT 01,18,99
They will appear to be comments (i.e displayed in green) but if this command works the same as $DEVICE (the only other command prefixed with a $) then it will be actioned.
Not sure if this is right or will help but hopefully may move this issue forward for you.
look forward to hearing the outcome of your experiments with this command.
Pev
kif wrote:No idea ??
I want limited my servo deplacement with this command : ex : $limit(00,20,95)
$limit(01,18,99)
etc....
i have error syntax = $limit not good ???
but this command exist in the manual robobasic ???
Best regards
Have just had a play the $DEVICE command. This is what I have found.
IF I put
$DEVICE MRC2000
in my code I get a syntax error. If I put
'$DEVICE MRC2000
I don't get the syntax error but I cannot compile the code and when I check the controller type in the RoboBasic GUI it has been set to the MRC-2000 controller.
Working on this basis it would seem that although the command
'$DEVICE MRC2000
appears in green and looks like a comment it is actually actioned when you compile the code. Which is kind of weird.
Can I suggest you try the same with the $LIMIT command and see if it works. That would mean the correct syntax for the command example you gave would be
'$LIMIT 00,20,95
'$LIMIT 01,18,99
They will appear to be comments (i.e displayed in green) but if this command works the same as $DEVICE (the only other command prefixed with a $) then it will be actioned.
Not sure if this is right or will help but hopefully may move this issue forward for you.
look forward to hearing the outcome of your experiments with this command.
Pev