From 72eb1efda441ed496323b73f342101b161ada364 Mon Sep 17 00:00:00 2001 From: Adrien Van Date: Wed, 15 Feb 2017 22:27:08 +0100 Subject: [PATCH] .. --- RegulationIntensite.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RegulationIntensite.ino b/RegulationIntensite.ino index 0c87523..e392789 100644 --- a/RegulationIntensite.ino +++ b/RegulationIntensite.ino @@ -1,7 +1,7 @@ #include "mesure.h" #define __PIN_PWM__ 3 -#define DEBUG +//#define DEBUG float target_curent = 0.05;//ma courant collecteur(A0,A1,100,1,1,0.248,0.248); // R1 10K, R2 3K3 courant base(A2,A3,820); @@ -25,7 +25,7 @@ void setup() void loop() { static int PWMCourent = 122; - float iBase = base.lireCourant(); + double iBase = base.lireCourant(); if(iBase < target_curent*0.9) PWMCourent++; else if(iBase > target_curent)