Innerbreed,
I’m not familiar much with how the ps2 remote works since I have the RC remote, the code base is still pretty much the same as the code you and I have both worked with.
I would however toss this line in your code to try and figure out what value the variables are to see if your button pressing is actually adding 10 to BodyPosY
serout S_OUT, i9600, "BodyPosY=", sdec BodyPosY, 13]
… You know
I guess you’d have to re explain this I popped open the 1.3 ps2 code I had and it seems like what your trying to do is possible…
Although You changed some variables to Sword? … I guess first off why did you find it necessary to do this?
I have found the variable type Xan had used to be exactly what’s needed to work, plus a lot of these max and min values of variables is well within the limits of the variable type… so increasing that won’t help or actually let you gain anything…
I found that to be the case with RFPOSX,Y,Z …
As an example, setup your main code to add and subtract values from RFPOSX, Y, Z and pick a single leg “RIGHT FRONT” for instance and each button press add 1 or subtract 1… so for all 3 variables you would use 6 buttons, make sure you connect your debug cable and monitor the values of all 3 variables and watch the leg move, you will see what I’m talking about…
I spent around 4 hours one day having the phoenix sit on a desk while I kept track of how far its legs can move out before the legs stopped moving due to mechanical limits and the values were well within the Sword…
I think the height was Z and the max was ±127 and I believe that was in mm so you couldn’t raise the phoenix higher then 127mm off the ground… so saving space in memory with that variable…
Anywho!.. put in that code snippet and see what happens, its quite possible your not changing the value of the variable or there is a problem with your code else ware…
–Aaron