X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=server%2Factuators%2Fpregulator.c;h=8b9d06e626fd6e254dee39f8f9fb8735b9983037;hb=1f6cc726ae4ec11ea0bf9c16f6f90cdb5d132cd6;hp=1cd62d3a3b055c0032335aeba046494d7dcdf1db;hpb=f54777b1c07919d18292491b2d2ccdbbc54a588d;p=matches%2FMCTX3420.git diff --git a/server/actuators/pregulator.c b/server/actuators/pregulator.c index 1cd62d3..8b9d06e 100644 --- a/server/actuators/pregulator.c +++ b/server/actuators/pregulator.c @@ -31,6 +31,7 @@ bool Pregulator_Cleanup(int id) bool Pregulator_Set(int id, double value) { double anti_calibrated = Data_Calibrate(value, preg_cal, pwm_raw, sizeof(pwm_raw)/sizeof(double)); + Log(LOGDEBUG, "Pregulator value %f -> PWM duty cycle %f", value, anti_calibrated); if (anti_calibrated < 0) anti_calibrated = 0; if (anti_calibrated > 1)