From a4d25331c326ee54fd2e9c7af59a2d0753319715 Mon Sep 17 00:00:00 2001 From: Johannes Schriewer Date: Sun, 5 Feb 2017 00:52:39 +0100 Subject: [PATCH] Copy and paste error from older Arduino sketch --- Arduino/glotz.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Arduino/glotz.ino b/Arduino/glotz.ino index a571d8b..f558092 100644 --- a/Arduino/glotz.ino +++ b/Arduino/glotz.ino @@ -42,8 +42,8 @@ void loop() { } // map ADC converted value into safe range - h = map(black, 0, 1023, hMin, hMax); - v = map(red, 0, 1023, vMin, vMax); + h = map(h, 0, 1023, hMin, hMax); + v = map(v, 0, 1023, vMin, vMax); // set servos horizontal.writeMicroseconds(h);