I have a scenario where my INIT program is in thread 1 and a "servo alarm/emergency stop" program is in thread 2. How would i go about running the program in thread 2 after my INIT program is ran in thread 1? For example, is there a way to call and run a C program at the end of my INIT file?
I have attached my INIT file (thread 1) and the ESTOP thread 2 program. The latest approach we have been trying is through a global persist variable but It just wont seem to work. There must be a simpler solution.
Any help would be appreciated,
Thanks.
-Curtis
ps. here is a video of what the kflop is powering: https://photos.app.goo.gl/ac2uA86gZTNDMDj73