by Ray » Sun Oct 19, 2008 9:01 am
by Ray
Sun Oct 19, 2008 9:01 am
Well, the variable va[65] is a user defined variable, in theory, this value will perminantly stored unless I turn of the Robot, so, I need to correct it.
But, anyway, I only use this variable in the Box lifting page.
when you leave the lift box routine, the variable still hold the value.
the hand is a combination of joystick values and user variable values.
The important point here is how to use the joystick to adust the hand to grip the box and then transfer this value to the user variables.
If this is not handling property, the transition will make the hand shake and loose the box. ( This is a very practical experiance, hard to explain

)
The 127 value is a offset to first make the robot's hand horizon to prepare to hold the box. my variables doesn't record this and so finally should add the offset again.
well, my program may not be a good design, try yours and show my your algorithm
here is my routine for your reference:
http://robosavvy.com/Builders/Ray/Lift%20Box.txt
Ray
Well, the variable va[65] is a user defined variable, in theory, this value will perminantly stored unless I turn of the Robot, so, I need to correct it.
But, anyway, I only use this variable in the Box lifting page.
when you leave the lift box routine, the variable still hold the value.
the hand is a combination of joystick values and user variable values.
The important point here is how to use the joystick to adust the hand to grip the box and then transfer this value to the user variables.
If this is not handling property, the transition will make the hand shake and loose the box. ( This is a very practical experiance, hard to explain

)
The 127 value is a offset to first make the robot's hand horizon to prepare to hold the box. my variables doesn't record this and so finally should add the offset again.
well, my program may not be a good design, try yours and show my your algorithm
here is my routine for your reference:
http://robosavvy.com/Builders/Ray/Lift%20Box.txt
Ray