From 6d50c49c1badf38a4f6d405f90b66b4bfc1d0452 Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Sun, 25 Apr 2021 14:58:50 -0500 Subject: Update main.c Change slope and intercept --- PICCode.X/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'PICCode.X/main.c') diff --git a/PICCode.X/main.c b/PICCode.X/main.c index 88d3f35..98b5203 100644 --- a/PICCode.X/main.c +++ b/PICCode.X/main.c @@ -75,7 +75,7 @@ void setup (void) { double VtoI(float value) { //TODO: Verify this. I've done a few and the error seems to be no more than 0.5 mA //MAKE SURE THE ERROR IS NEVER >=1.0mA (as per project description) - return (double) ((value + 0.204) / 0.032); + return (double) ((value + 0.202) / 0.036); } int main(void) { -- cgit v1.2.3