Hi,
I have a problem with the generated program from PowerPod for my hexapod.
The problem occurs when I have one of these programs (i.e. for serial control or autonomus) on my BotBoardII. When the hexapod is turned on from off position it forces the legs in a HV postion less than 900 during the initializaition sequnce below.
InitPos
serout SSC32,I8N1_38400,"#",RRHV,RRHV2,"P2100#",RRK,RRK2,"P1800#",MRHV,MRHV2,"P2100#",MRK,MRK2,"P1800#", |
FRHV,FRHV2,"P2100#",FRK,FRK2,"P1800#",RLHV,RLHV2,"P900#",RLK,RLK2,"P1200#",MLHV,MLHV2,"P900#", |
MLK,MLK2,"P1200#",FLHV,FLHV2,"P900#",FLK,FLK2,"P1200T1152",13]
The **HV,**HV2,“P900#” commands, which normaly runs fine, forces my servos to go below minimum position. This does not happend when the Hexapod is already on and I reprogram it.
Is there a solution for this?
can I just set the HV to 950 or will this ruin some init calculations?
Could it help to set the H3Init to ButtonA to be sure nothing is happening before i press the button, or does this screw up the Initiation?
I also have a question about the code:
if Initialized = 0 then Shunt
it does not seem to be doing anything, the program will go to Shunt even if Initialized = 1. Should it be a normal if, like this:
if Initialized = 0 then