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 Lahis Almeida

EixoController.h

Committer:
kevencastro7
Date:
2017-12-15
Revision:
2:835c883d81b0
Parent:
0:7cedfb720712

File content as of revision 2:835c883d81b0:

#ifndef EIXO_CONTROLLER_H
#define EIXO_CONTROLLER_H

#include "Debug.h"
#include "Stepp.h"
#include "mbed.h"
#include "PCF8574.h"



class EixoController{

    public:
        EixoController(float, float, Stepp*,PCF8574*, int, int );
                bool goToOrigem(int);
                void calibragem(int);
                int conversao(int);
                void goToPosition(int, int );   
                
    private:
                int totalPathPulse;
                int totalPathCm;    
                
                PCF8574* pcf;
                int swOrigin;
                int swEnd;
                Stepp*       motor ;
                Debug*       debug;
};

#endif