Dynomotion

Group: DynoMotion Message: 9473 From: Rjreese29 Date: 5/9/2014
Subject: Re: migration to kmotion C
Hi Tom,
Just chiming in here b/c I am seeing similiar issues of the axis jogging when off. The axis don't move upon startup, but when I jog my xbox the axis move and then don't stop when I release jogging on the controller. With the right combination of button pushing on the controller(that combo is tbd, it may be random), the axis eventually stop.
Below, what do you mean by?:

You would need to re-comple KMotionCNC to change the value.
Begin code:
double CKMotionCNCDlg::DoJoyAxis(int
axis, int joystick)
{
    double v;

    v = joystick-0x7fff;
    if (ThreadIsExecuting) v=0;
    if (fabs(v) < 1600) v=0;

    v *= m_JogSpeed[axis] * m_JogSpeedFactor / 32768.0;

    return v;
}
End code

The line that starts with "CK..." Gives me a compile error when I install this code on thread 1. I understand that the parenthesis should be on the same line of code. I couldn't get past this code you provided.

The kflop is super amazing!! Thanks



Rob

On May 9, 2014, at 9:16 AM, "Colin Fera colin.fera@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:

You would need to re-comple KMotionCNC to change the value.

double CKMotionCNCDlg::DoJoyAxis(int axis, int joystick)
{
    double v;

    v = joystick-0x7fff;
    if (ThreadIsExecuting) v=0;
    if (fabs(v) < 1600) v=0;

    v *= m_JogSpeed[axis] * m_JogSpeedFactor / 32768.0;

    return v;
}
Group: DynoMotion Message: 9476 From: Tom Kerekes Date: 5/9/2014
Subject: Re: migration to kmotion C
Hi Rob,

That code is from KMotionCNC and is compiled by Visual Studio to run on the PC not KFLOP.  You will need Visual Studio 2008 Standard Version to easily make changes to it.

Regards
TK

Group: DynoMotion Message: 9492 From: Rjreese29 Date: 5/12/2014
Subject: Re: migration to kmotion C
Thanks Tom !!

Rob

On May 9, 2014, at 1:11 PM, "Tom Kerekes tk@... [DynoMotion]" <DynoMotion@yahoogroups.com> wrote:

 

Hi Rob,

That code is from KMotionCNC and is compiled by Visual Studio to run on the PC not KFLOP.  You will need Visual Studio 2008 Standard Version to easily make changes to it.

Regards
TK