
This is a remote control tester, it uses a CNC, Ethernet Communication with a JAVAFX interface and a PLC in order to control some valves.
Dependencies: EthernetInterface mbed-rtos mbed
Fork of CNC_CONTROLLER by
EixoController.h@2:835c883d81b0, 2017-12-15 (annotated)
- Committer:
- kevencastro7
- Date:
- Fri Dec 15 19:40:41 2017 +0000
- Revision:
- 2:835c883d81b0
- Parent:
- 0:7cedfb720712
This is a remote control tester, it uses a CNC, Ethernet Communication with a JAVAFX interface and a PLC in order to control some valves.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
waspSalander | 0:7cedfb720712 | 1 | #ifndef EIXO_CONTROLLER_H |
waspSalander | 0:7cedfb720712 | 2 | #define EIXO_CONTROLLER_H |
waspSalander | 0:7cedfb720712 | 3 | |
waspSalander | 0:7cedfb720712 | 4 | #include "Debug.h" |
waspSalander | 0:7cedfb720712 | 5 | #include "Stepp.h" |
waspSalander | 0:7cedfb720712 | 6 | #include "mbed.h" |
kevencastro7 | 2:835c883d81b0 | 7 | #include "PCF8574.h" |
kevencastro7 | 2:835c883d81b0 | 8 | |
waspSalander | 0:7cedfb720712 | 9 | |
waspSalander | 0:7cedfb720712 | 10 | |
waspSalander | 0:7cedfb720712 | 11 | class EixoController{ |
waspSalander | 0:7cedfb720712 | 12 | |
waspSalander | 0:7cedfb720712 | 13 | public: |
kevencastro7 | 2:835c883d81b0 | 14 | EixoController(float, float, Stepp*,PCF8574*, int, int ); |
kevencastro7 | 2:835c883d81b0 | 15 | bool goToOrigem(int); |
waspSalander | 0:7cedfb720712 | 16 | void calibragem(int); |
waspSalander | 0:7cedfb720712 | 17 | int conversao(int); |
waspSalander | 0:7cedfb720712 | 18 | void goToPosition(int, int ); |
waspSalander | 0:7cedfb720712 | 19 | |
waspSalander | 0:7cedfb720712 | 20 | private: |
waspSalander | 0:7cedfb720712 | 21 | int totalPathPulse; |
waspSalander | 0:7cedfb720712 | 22 | int totalPathCm; |
waspSalander | 0:7cedfb720712 | 23 | |
kevencastro7 | 2:835c883d81b0 | 24 | PCF8574* pcf; |
kevencastro7 | 2:835c883d81b0 | 25 | int swOrigin; |
kevencastro7 | 2:835c883d81b0 | 26 | int swEnd; |
waspSalander | 0:7cedfb720712 | 27 | Stepp* motor ; |
waspSalander | 0:7cedfb720712 | 28 | Debug* debug; |
waspSalander | 0:7cedfb720712 | 29 | }; |
waspSalander | 0:7cedfb720712 | 30 | |
waspSalander | 0:7cedfb720712 | 31 | #endif |
waspSalander | 0:7cedfb720712 | 32 |