ti bisogna il phaserunner
Dependencies: mbed PID mbed-rtos
Diff: Phaserunner.h
- Revision:
- 6:a80300ee574d
- Parent:
- 0:8a660654d511
--- a/Phaserunner.h Wed Apr 24 15:37:32 2019 +0000 +++ b/Phaserunner.h Thu May 09 11:50:43 2019 +0000 @@ -18,6 +18,7 @@ static const unsigned short REMOTE_ANALOG_BREAK_VOLTAGE = 497; static const unsigned short MOTOR_CURRENT = 262; static const unsigned short LAST_FAULT = 269; + static const unsigned short EBRAKESOURCE = 249; //Modbus-Protokoll static const uint8_t SCHREIBANTWORT = 0x10; @@ -74,7 +75,7 @@ * @param value: Wert der in das Register geschriebern werden soll. * @return Anzahl gesendeter Bytes */ - int sendBuffer(unsigned short adress, unsigned short value); + //int sendBuffer(unsigned short adress, unsigned short value); /** * @brief Sendet den writeBuffer @@ -129,7 +130,7 @@ static const uint8_t MAX_TORQUE_GAIN = 2; //Maximaler Sprung für Drehmoment static const uint8_t MIN_RECUPERATION = 10; //Schwellwert für die Aktivierung des Daumengriffbetätigers static const uint8_t MIN_HANDGRIFF = 5; //Schwellwert für die Aktivierung des Handgriffbetätigers - + int sendBuffer(unsigned short adress, unsigned short value); /** * @brief Initialisiert ein Phaserunner-Objekt * @param connection: Serielle Schnittstelle zum Phaserunner @@ -154,7 +155,7 @@ float getFrequency(); /** - * @return strohm + * @return strom */ float getCurrent(); @@ -162,6 +163,11 @@ * @return spannung */ float getVoltage(); + + /** + * @return Ebrike Source + */ + int getRegister(int address); //Delete uint8_t badBuf[256];