Trying to get the h1walk1.bas file to run on EH1 with IRPD

I’ve received and built my first robot! An EH1 with the Atom Pro 28.

I’m trying to get the h1walk1.bas file to run on my new EH1. I know I need to edit some things to make it run on the Atom Pro 28 with the IRPD.

Here is a link to the file:

lynxmotion.com/images/files/h1walk1.bas

The problem seems to be the lines in the IRPD section that contain a colon.

Example:

high irpdl: pause 1

When compiling this line returns the error:

h1walk1.asm:995: Error: Symbol_LN00000_00072 already defined.

I may have a another problem with the code.

Separating the “pause 1” commands onto their own lines solves the error problem but does not seem to make the IRPD respond.

I’m not sure if it is actually doing anything as the LEDs don’t seem to react to obstacles.

Again, thanks for your valuable time.

First put all the commands on individual lines. You’ll never be able to tell where the error is if you have multiple comand on the same line.

Then actually post the exact error messages your are getting. Just kind of throwing out an “I’m having problems but not gona tell ya” question is kind of pointless.

Yes we could go find your file on the website(hopefully), download it and try compiling it ourselves, but we are here to help you on our free time/for fun. You should be as helpful as you can be if you really want your problem solved. Include the WHOLE program or a link to it as well.

I edited the original post per your helpful suggestions. :wink:

BTW, the part about multiple command on the same line:

That’s the way Jim wrote it, so I just thought I would try it that way.

Thanks, again.

There is no problem with multiple commands on a single line. It works great. What Nathan is trying to say is, when troubleshooting, it is helpful to put only one command on each line. This way the IDE can show you which instruction the problem is in, not just the line with many instructions.

The main thing you need to check when porting Atom programs to Pro when servos are involved is that the Atom has 1uS resolution and the Pro has .5uS resolution. You have to double the values to get the same position with a servo.

A pulsout of 1000 on an Atom is 1000uS, or 1mS.
A pulsout of 1000 on a Pro is 500uS, or .5mS.
A pulsout of 2000 on a Pro is 1000uS, or 1mS.

Hope this helps…