Hi Guys. I've got motivation to play with writing own component. I'd like to design own thc to drive thcud mesa controller.
My initial experience is rather negative at the moment. I stuck in place where I'm trying to take control over Z axis stepper driver moves.
I've started my experiment with placing of my simple component in between of
axis.2.motor-pos-cmd
and
hm2_[HOSTMOT2](BOARD).0.stepgen.02.position-cmd
Whatever I put there - either trivial component which just copy signal from input to output, standard component like mux, and.. etc which does basically the same, I've always got following error on a rapid move. I'm running RT Preemptive LinuxCnc build and of cource running all hal componets in servo thread.
I slightly stuck here because I have many assumptions which could explain this, and need an expert opinion to point me from what to start to solve this problem. Currently I don't quite distinguish what's exactly happen if I link 2 pins in hal file and if I link them and put a component in between. Does the direct link is thread independent and putting of a component may involve synchronization issue? What supposed to do in such case? Does any tools which could help to synhronize low frequency stream and high frequency? Maybe this could be managed by onboard functionality (I have Mesa 7i76E which based on 5i25).
Any support from lcnc guru which could help me realise full picture would be really appeciated!