From fe21d1b79fef971fb7e6832acc03a895c26054ac Mon Sep 17 00:00:00 2001 From: Fisch Date: Tue, 2 Feb 2021 20:55:41 +0100 Subject: [PATCH] add second blind --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 4424c8e..c417720 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -178,27 +178,34 @@ void setup() { void loop() { checkButton(button1); + checkButton(button2); //Manual movement by button manualMoveHandler(button1, blind1); + manualMoveHandler(button2, blind2); //Read sensor/encoder readSensor(blind1); + readSensor(blind2); checkModes(blind1); + checkModes(blind2); errorCheck(blind1); + errorCheck(blind2); //Estimate blind position and correct estimatePosition(blind1); + estimatePosition(blind2); //Update Motor Driver updateMotor(blind1, M1); + updateMotor(blind2, M2); } int sort_desc(const void *cmp1, const void *cmp2) //compare function for qsort