by bauermech » Tue Feb 07, 2006 9:06 pm
by bauermech
Tue Feb 07, 2006 9:06 pm
Thanks for the welcome limor. Yeah, I program in VB6, so RoboBASIC comes somewhat natural to me. I only wish it was possible to interrupt a movement sequence remotely once one has been started. I tried setting a variable to say... 0, and set up one of the bettons on the remote to change that variable to 1. That way, when I commanded the robonova to walk, it would do so until I pressed the button that initiated the variable change and force it to finish the loop then return to the standard pose. However, this doesn't work because, like I said before, the walk sequence cannot be interrupted, or a new command sent to the controller until it has ended.
One other approach I took was to set up a counter (count = count + 1), and assigned it to a button. One would press the button to indicate to the program how many times the robot should cycle through the walk loop
...start walking code
FOR A10 = 1 TO count
...walking code
NEXT A10
...stop walking and return to standard pose code
count = 1.
I pressed the "Count" button on the remote ten times, then pressed the "Walk Forward" button. What do you know, it worked! BUT, it only went through the walk loop about four times instead of ten. The problem? When using the IR remote, the controller only accepts incoming signals momentarily. If you time it right, you can get it to work the way it should.
I'm starting the hunt for .ocx and .dll files so I can do the "program my own software in VB6" thing. We'll see how that goes...
I'll post my modified .bas file to share once it's complete. I have a lot of sequences to enter yet, but it’ll utilize the IF/THENs, FOR/NEXTs, etc.
Oh yeah, lemor! I took your advice and visited sparkfun. After perusing through several RF specification docs, I went ahead and ordered one of their BlueSMiRFs. With a little mod, it should work. I'll let you know sometime next week if it was successful.
Thanks for the welcome limor. Yeah, I program in VB6, so RoboBASIC comes somewhat natural to me. I only wish it was possible to interrupt a movement sequence remotely once one has been started. I tried setting a variable to say... 0, and set up one of the bettons on the remote to change that variable to 1. That way, when I commanded the robonova to walk, it would do so until I pressed the button that initiated the variable change and force it to finish the loop then return to the standard pose. However, this doesn't work because, like I said before, the walk sequence cannot be interrupted, or a new command sent to the controller until it has ended.
One other approach I took was to set up a counter (count = count + 1), and assigned it to a button. One would press the button to indicate to the program how many times the robot should cycle through the walk loop
...start walking code
FOR A10 = 1 TO count
...walking code
NEXT A10
...stop walking and return to standard pose code
count = 1.
I pressed the "Count" button on the remote ten times, then pressed the "Walk Forward" button. What do you know, it worked! BUT, it only went through the walk loop about four times instead of ten. The problem? When using the IR remote, the controller only accepts incoming signals momentarily. If you time it right, you can get it to work the way it should.
I'm starting the hunt for .ocx and .dll files so I can do the "program my own software in VB6" thing. We'll see how that goes...
I'll post my modified .bas file to share once it's complete. I have a lot of sequences to enter yet, but it’ll utilize the IF/THENs, FOR/NEXTs, etc.
Oh yeah, lemor! I took your advice and visited sparkfun. After perusing through several RF specification docs, I went ahead and ordered one of their BlueSMiRFs. With a little mod, it should work. I'll let you know sometime next week if it was successful.