help

can i get some help with waithservo it just says

“syntax error: expected variable”

What’s in that line in your program? What did you type? You’re most probably making a syntax error.

It would help if you included more information in your post. For example are you using the Atom or the Atom Pro. What version of the software are you using, etc.

For example if you are using version 8 of the Atom Pro software, the manual shows:

Syntax WAITHSERVO [pin#,pin#,…] Pin# is an expression that specifies the I/O pin number to which the servo is connected

my bad umm its a atom pro version 8 of the software

HSERVO [p0\-14000\255,p1\1500\240,p2\-13800\100.,p3\-7000\255] WAITHSERVO [p0,p1,p2,p3] HSERVO [p0\-14000\80,p1\1500\255,p2\-13800\200]

i also tryed it with [pin0,pin1,pin2,pin3] and still nothing

Looking at my Atom Pro code for my brat, I see:

lefthip con p12 ... hservo [lefthip\TOINT (-lefthippos*stepsperdegree) + ServoZeros(SZI_leftHip)\TOINT lhspeed, | righthip\TOINT (righthippos*stepsperdegree) + ServoZeros(SZI_rightHip)\TOINT rhspeed, | leftknee\TOINT (-leftkneepos*stepsperdegree) + ServoZeros(SZI_leftKnee)\TOINT lkspeed, | rightknee\TOINT (rightkneepos*stepsperdegree) + ServoZeros(SZI_rightKnee)\TOINT rkspeed, | leftankle\TOINT (-leftanklepos*stepsperdegree) + ServoZeros(SZI_leftAnkle)\TOINT laspeed, | rightankle\TOINT (rightanklepos*stepsperdegree) + ServoZeros(SZI_rightAnkle)\TOINT raspeed] hservowait [lefthip,righthip,leftknee,rightknee,leftankle,rightankle]

So it my be that waithservo should be hservowait!

Good Luck

thanks the helped i think but if i hold a servo so it cant move to the right spot shodent it wait b4 moveing the next servo? it just pauses 4 a bit now witch is still good jw if its right

HSERVO [p0\-14000\255,p1\1500\240,p2\-13800\200,p3\-7000\255] HSERVOWAIT [p0,p1,p2,p3] HSERVO [p3\12000\180]

Hservowait wil wait until all the specified servos have finished their last movement command.

is there a hservowait in 7.2 software
8.0 software wont open on my laptop anyone els haveing problems with the new software

I run the 8.0 just fine. However I have found that if after I install 8.0 I run the 7.2 then it will no longer run. You then need to uninstall and reinstall 8.0 to make it work again

Kurt

SOunds like the registry may be corrupted. Try deleteing the Atom registry key if you are having trouble running 8.0. Open regedit and goto:

HKEY_CURRENT)USER/Software/

and delete the BasicMicroIDE-Atom key.

You may want to delete any BasicMicroIDE keys you find there as well. They will be rebuilt the next time you run the software.

P.S. Don’t delete anything else. :slight_smile:

Nathan there is a problem here! I have all 4 IDE’s installed, after some poking around, I can see both 7.2.0.6 and 8.0.0.0 are default to install in the exact same directory. I couldn’t figure out why there was only 3 occurances of Atom IDE’s in my add or remove programs thing when I opened it. So After I installed 8.0.0.0 it worked fine, but after I used 7.2.0.6 then 8.0.0.0 would not work anymore.

So not being a PC “guru” I’m reluctant to start uninstalling things because 8.0.0.0 was installed on top of 7.2.0.6. Also the add or remove programs window showed the version number on the old installs, but the Beta ones do not show a version number which makes it difficult to see what’s what.

I’m pretty sure I’m right about this because I see the following:

Basic Micro ATOM IDE 2.2 <- old IDE
BasicAtom IDE <- beta IDE
BasicAtomPro IDE <- beta pro IDE

There’s no Basic Micro ATOM PRO IDE 7.2 because it was overwritten by the beta 8.0.0.0 one. That’s all I know.

To uninstall any of our software just go to add/remove programs and uninstall what you find. Then go to the BasicMicro directory in ProgramFiles(ussually on your C: drive). and Delete the basicmicro directory(s). We only put files in our own directory so there isn’t where else to look.

At the moment 8.0.0.0 is going to the same location because it’s still beta. and I didn’t think about adjusting the install location when I made the installer for it. I’ll try to find some time this week to update the installer so it goes to a different location.

8.0 isent in my uninstall thing any suggestions