RegulationIntensite/mesure.h

33 lines
756 B
C
Raw Permalink Normal View History

2017-02-15 19:48:31 +01:00
#ifndef MESURE_H
#define MESURE_H
#include <stdarg.h>
class courant
{
private:
int u1RAW;
int u2RAW;
int r;
uint8_t pinPWM;
uint8_t pinU1;
uint8_t pinU2;
2017-02-15 21:27:17 +01:00
double u1;
double u2;
2017-02-15 19:48:31 +01:00
uint8_t bridgeU1Enable;
uint8_t bridgeU2Enable;
2017-02-15 21:27:17 +01:00
double bridgeU1RapportR;
double bridgeU2RapportR;
2017-02-15 19:48:31 +01:00
void lireTension();
public:
2017-02-15 21:27:17 +01:00
courant(uint8_t pinU1, uint8_t pinU2, int r);
courant(uint8_t pinU1, uint8_t pinU2, int r, uint8_t bridgeU1Enable, uint8_t bridgeU2Enable, ...);
void config(uint8_t pinU1, uint8_t pinU2, int r);
void config(uint8_t pinU1, uint8_t pinU2, int r, uint8_t bridgeU1, uint8_t bridgeU2, ...);
double lireCourant();
double lireTensionU1();
double lireTensionU2();
2017-02-15 19:48:31 +01:00
;};
#endif