Copy and paste error from older Arduino sketch
This commit is contained in:
parent
6f5c17489c
commit
a4d25331c3
1 changed files with 2 additions and 2 deletions
|
@ -42,8 +42,8 @@ void loop() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// map ADC converted value into safe range
|
// map ADC converted value into safe range
|
||||||
h = map(black, 0, 1023, hMin, hMax);
|
h = map(h, 0, 1023, hMin, hMax);
|
||||||
v = map(red, 0, 1023, vMin, vMax);
|
v = map(v, 0, 1023, vMin, vMax);
|
||||||
|
|
||||||
// set servos
|
// set servos
|
||||||
horizontal.writeMicroseconds(h);
|
horizontal.writeMicroseconds(h);
|
||||||
|
|
Loading…
Reference in a new issue