ubuntu 10.04 Lcnc2.7 JA8 custom kins

More
10 years 11 months ago #65443 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??

k-1's Avatar

@ ANdyPugh .... in motion not have jog.select pin .....

I summarize: i
in joint mode->
halui.mode.is-teleop off
halui.jog.0.increment -257 (go to negative)
halui.jog.selected.increment 0.01
joint.0.wheel-jog.active on
joint.0.jog.scale xxx(not remember
joint.0.jog.enable on
joint.0.jog.increment -257 ALL WORKS 1JOINT AT TIME

in world mode->
halui.mode.is-teleop on
halui.jog.0.increment -257 (go to negative)
halui.jog.selected.increment 0.01
joint.0.wheel-jog.active on
joint.0.jog.scale xxx(not remember
joint.0.jog.enable on
joint.0.jog.increment -257 AXIS/JOINT IS STOP WITH EXTERNAL MPG. With axis button all works!!


@Andypugh as you see I have joint.0.jog.enable on joint.0.jog.scale == selected.increment halui.jog.selected.increment 0.01 halui.jog.0.increment -257 (the value depends of movement of encoder wheel..)

If I try these:
Code:
setp axis.0.jog-vel-mode 0 (axis or joint depends if I use JA8 or Lcnc2.7 --- this is Lcnc code) net selected-jog-incr => axis.0.jog-scale (selected-jog-incr depends of mux4 0.001/0.004/0.012) net joint-select-a => axis.0.jog-enable <= hm2_5i25.0.7i77.0.0.input-16 net joint-selected-count => axis.0.jog-counts (joint-selected-counts depends of encoder count mesa pin) #******OR IN JA8************************ setp joint.0.jog-vel-mode 0 (axis or joint depends if I use JA8 or Lcnc2.7 --- this is JA8 code) net selected-jog-incr => joint.0.jog-scale (selected-jog-incr depends of mux4 0.001/0.004/0.012) net joint-select-a => joint.0.jog-enable <= hm2_5i25.0.7i77.0.0.input-16 net joint-selected-count => joint.0.jog-counts (joint-selected-counts depends of encoder count mesa pin)

I can make jog in joint mode but not in world mode .... the same in JA8 too .... What is wrong

regards
Giorgio

Please Log in to join the conversation.

More
10 years 11 months ago #65452 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
that fool I am .... I can not give the same jog.count all axes if I want interpolate us.... but I'll probably give jog.enable to all or maybe not . And this true?

Please Log in to join the conversation.

More
10 years 11 months ago #65457 by andypugh
Replied by andypugh on topic ubuntu 10.04 Lcnc2.7 JA??

k-1 wrote: that fool I am .... I can not give the same jog.count all axes if I want interpolate us..


Actually, I think you can.

Each individual axis looks at the change in jog counts when it is enabled for jogging, rather than absolute jog counts.

Please Log in to join the conversation.

More
10 years 11 months ago #65460 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
double response

Please Log in to join the conversation.

More
10 years 11 months ago #65463 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
I can?? than there are no reason because this code doesn't work in world mode with delta kins:
Code:
setp joint.0.jog-vel-mode 0 setp joint.0.jog-scale 0.001 net joint-select-a => joint.0.jog-enable <= hm2_5i25.0.7i77.0.0.input-16 net MPG-encoder-count hm2_5i25.0.7i77.0.0.encoder.5.count => joint.0.jog-counts

Is right?

But in joint mode works fine ..... swithc to world mode and the axis stop .... I move the hand wheel whitout any result ...than I switch again to joint mode and the axis litterally JUMP for an amount of position than not move in world mode.

regards
Giorgio

Please Log in to join the conversation.

More
10 years 11 months ago #65488 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
today I try with other kinematics customisation....

Please Log in to join the conversation.

More
10 years 11 months ago #65490 by andypugh
Replied by andypugh on topic ubuntu 10.04 Lcnc2.7 JA??

k-1 wrote: today I try with other kinematics customisation....


I am setting up a JA system on my new controller.
So far with the normal 2.7 version I can confirm your joint-mode but not world-mode jogging experience.

Please Log in to join the conversation.

More
10 years 11 months ago #65492 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
ok .... Today I make all the necessary pin to make a jog in world mode in deltakinematics with handwheel ... ... very funny .... the macanism:

if is-teleop & is-manual & selected-axis is ON condition than set encoder.reset to 0 and add encoder-count/selected-increment convert to float in these way : emcpose * pos->tran--selected axis + encoder-value......
Code:
int kinematicsInverse(const EmcPose * world, double * joints, const KINEMATICS_INVERSE_FLAGS *iflags, KINEMATICS_FORWARD_FLAGS *fflags) { double x0, y0, z0, theta1, theta2, theta3; int status; if ( condition ....) {x0 = world->tran.x + encoder-value (for example);} else if (condition ....) { y0 = world->tran.y+ encoder-value (for example);} ............ else { x0 = world->tran.x; y0 = world->tran.y; z0 = world->tran.z; joints[3] = world->a; joints[4] = world->b; joints[5] = world->c; joints[6] = world->u; joints[7] = world->v; joints[8] = world->w; } theta1 = theta2 = theta3 = 0; status = delta_calcAngleYZ(x0, y0, z0, &theta1);


obviusly when the is-teleop & is-manual & selected
axis than condition is OFF emcpose*pos return immediately to original value .... how to add definitively some value in kinematics to emcpose*pos? Appreciate any link to study the situation.

I try to add the code on foward kins .... dro show the modified new quote but nothing move. Than I put the code on inverse kins....

Tanks
Regards
giorgio

Please Log in to join the conversation.

More
10 years 11 months ago #65493 by andypugh
Replied by andypugh on topic ubuntu 10.04 Lcnc2.7 JA??
Kinematics really is not the place to do this.

It needs to be in motion. (if for no other reason that otherwise the limits will not work).

Please Log in to join the conversation.

More
10 years 11 months ago #65494 by bkt
Replied by bkt on topic ubuntu 10.04 Lcnc2.7 JA??
you are in right ... but when I see motion.c I see a lot of pin that send to hal ...... so I can add the encoder value from inverse kins to hal file joint.N.motor-pos-fb ?? is possible?? Or must rearrange motion code for add to my system in motion ? then who assures me that he sends the values ​​to the inverse kinematics ? now in effect it does not!

in any case are not such a good programmer to get by with a couple of hours of work for this ..... I tried the way kinematics .... I know the file (which is quite simple ) and just do the My changes ......

Please Log in to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum