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.
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.
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.