This Project has codes that may cnc controller possible. My cnc has 2 mechanical axis. I am monitoring through switches the axis limits. For this i use the library rtos. Enjoy.
Diff: EixoMonitoring.cpp
- Revision:
- 1:ef18c260ce02
- Parent:
- 0:7cedfb720712
diff -r 7cedfb720712 -r ef18c260ce02 EixoMonitoring.cpp --- a/EixoMonitoring.cpp Wed Jun 07 13:31:02 2017 +0000 +++ b/EixoMonitoring.cpp Mon Sep 18 13:05:47 2017 +0000 @@ -1,6 +1,6 @@ #include "EixoMonitoring.h" -bool EixoMonitoring::stopAll = false; +bool EixoMonitoring::stopAll = false; bool EixoMonitoring::isCalibrated = false; @@ -8,7 +8,7 @@ this->stopMoviment = false; this->stopMonitoring = false; - this->delayTimer = 700; + this->delayTimer = 700; PinName pin_End = pinEnd; PinName pin_Origin = pinOrigin;