Originally Posted by
TomKerekes
axis 0 is ch0->Dest
ch0->Position (only valid if you have feedback)
thank you! I looked through the .h file and even found the channels (axis 0 - 8), but I didn't see the ch0->Dest and ch0->Position. where's the struct defintion for ch0?
I did
Code:
printf("Axis :\n\tx: %f\n\ty: %f\n\tz0: %f\n\tz1: %f\n", ch0->Dest, ch1->Dest, ch2->Dest, ch3->Dest);
printf("Axis :\n\tx: %f\n\ty: %f\n\tz0: %f\n\tz1: %f\n", ch0->Position, ch1->Position, ch2->Position, ch3->Position);
and got this output
Axis :
x: 17620.834697
y: 17620.834697
z0: -8852.938141
z1: -8836.988400
Axis :
x: 17620.800263
y: 17620.834697
z0: -8852.938141
z1: -8836.988400
The current machine coordinates are
X:4.3347
Y:2.8302
Z0:-0.5523
z1:-0.5533
How do I get to the machine positions from the chx->Dest numbers?