PowerPod BA program compilation error

Hello,

When the PowewrPod asked which compiler I wanted to go with, I chose 5.3.0.0. The only one available on the website is 5.3.1.0. The problem is when I try to compile the code I get the following error:

HEX1_BA.BAS[LINE 482]:[TOKEN-]: Unexpected token type

	StepFlag = (GaitSpeedTmp - 2) max 3 

I don’t understand the error.

Also, does the timing parts still need to be update? I mean I read in another thread that the ver.5 compiler is 32-bit and the timing needed to reflect time in uS and not mS.

Thanks,
Duane

Did you define the variables?

[code]StepFlag var byte
GaitSpeedTmp var byte

StepFlag = (GaitSpeedTmp - 2) max 3[/code]

After analyzing the program, I’ve noticed that the var ‘GaitSpeedTmp’ isn’t defined. Defining it isn’t the problem, its the fact that it looks like it should equal some value by the time the program gets to that statement. (GaitSpeedTmp - 2) Its not defined nor used anywhere prior to that. What it should equal is what has me guessing.

Thanks

I will inform Laurent when he gets in. In the meantime you can always DL the 2.2.1.1 version. I know there are no issue using that IDE. I just went to the website and 2.2.1.1 IS available for DL… Thanks, Jim

Hi Duane,

Doesn’t your code have these statements in H3init:

NbSteps = 4
GaitSpeedTmp = NbSteps

Which would have been called first.

But perhaps you are building for a different 'bot? Or more recent code. The code I’ve been studying is:

;----------------- 3.36 3DOF-C ------------------
;---- Serial Port Control (Bot Board / PC) ------
;-------------- Round Body (H3-R) ---------------

And also has:

GaitSpeedTmp var Byte
StepFlag var Byte

As has been previously mentioned.

The setting and updating of GaitSpeed and GaitSpeedTemp swap back and forth from what I can see, depending (maybe) on whether the 'bot is in “legs locked” mode or not?

I’m still wondering what the /300 term in the sin/cos equations are for. Any Ideas?

Another interesting question is where is the “flip” for the HipH servos (symmetrical 'bot) accomplished? Also in the sin/cos equations? ;>)

Alan KM6VV
Curious minds want to know.

Guess I need to give a little more information. Here is what I’m using:

I using BMIDE 5.3.1.0

The key thing there is Autonomous. When I compile this, all works well:

Let me explore 2.1.1.1.1 and see what happens. I’ll check back in shortly with my findings.

Then it’s not an issue with the IDE then. It looks like an issue with the autonomous behavior. I have not used this one myself, and it’s not a very popular routine. The problem may have crept in there from the beginning. :frowning: Still waiting for Laurent to show up.

It is a problem with the Autonomous programs. I loaded the BMIDE 2.2.1.1 and PowerPod on a different machine, and had PowerPod create the autonomous code. Loaded the code into the BMIDE and ran into the same problem.

Thanks for looking into this Jim, and thanks for all the other replies too.

Duane

Haha !

yes that’s a bug :blush:

you were having trouble with 2 other lines before uh ?
like :
LastButton(0) = 255
LastButton(1) = 255

and you removed them eh ?

i have corrected the code and added a complete support for little gripper within the autonomous control system…it was not fully operational in VX.38

the new pmp file VX.39 will be online tomorrow
you’ll only have to download this new file and remove the old VX.38 one to avoid using it in the future.
no need to install the new powerpod full program which will be online tomorrow too, this last one is just including the new pmp file VX.39…

Thanks for the quick extermination there! I hate bugs, no I really hate bugs. :smiley:

There is a multi-legged creature crawling on your shoulder… Muahahahahahahah! :wink:

8-Dale

Hey Laurent,

When you get the chance, could you post VX.39 PMP file.

Thanks,
Duane

Actually Beth does this sort of thing. We had the files this morning, but totally spaced posting them. :stuck_out_tongue: Here is the link.

lynxmotion.com/Product.aspx? … egoryID=15

Hi Beth,

Maybe you could post the boot loader HEX & ASM files for the new Mega168 chip in the SSC-32 (if you have it) also?

Thanks,

Alan KM6VV