RegulationIntensite/RegulationIntensite.h

35 lines
479 B
C
Raw Normal View History

2017-02-08 00:45:16 +01:00
#ifndef REGULATIONINTENSITE_H
#define REGULATIONINTENSITE_H
2017-02-15 06:44:18 +01:00
typedef struct {
float rapportR;
int pinU;
float uMesure;
float uReel;
} PontDiviseur;
typedef struct {
float r;
int pinU1;
int pinU2;
float u1;
float u2;
float i;
} CurentFromR;
typedef struct {
float targetI;
int pinPWM;
float *curI;
} Reg;
float readCurentFromR(CurentFromR *);
float readUFromPontDiviseur(PontDiviseur *);
void regulationI(Reg *);
void regulationVCE(Reg *);
2017-02-08 00:45:16 +01:00
#endif