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.
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.
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
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? ;>)
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. 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.
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…