change parameters for new cabling

master
interfisch 2 years ago
parent 6f0bb5def9
commit 0b2e8ba4c0
  1. 24
      src/main.cpp

@ -8,7 +8,7 @@
TODO:
- correct speedfactor when moving at pwm=100 for some time over opaque+clear OR implement speedfactor for up and lower state
- implement failure detection (timeouts)
- homie commands (find zero, test speed, etc)
- homie commands (reset error, etc)
*/
@ -191,12 +191,12 @@ void setup() {
blind1.length_clear=50;
blind1.length_opaque=74;
blind1.sense_clear_lower=40;
blind1.sense_clear_upper=200;
blind1.sense_opaque_lower=500;
blind1.sense_opaque_upper=850;
blind1.sense_clear_upper=100;
blind1.sense_opaque_lower=150;
blind1.sense_opaque_upper=800;
blind1.sense_end_lower=850;
blind1.sense_end_upper=1024;
blind1.speedfactorLow=28;
blind1.speedfactorLow=29;
blind1.speedfactorHigh=24.5;
blind1.start_first_clear=27;
blind1.simulated_acc_dec=-150;
@ -208,13 +208,13 @@ void setup() {
blind2.length_clear=50;
blind2.length_opaque=74;
blind2.sense_clear_lower=40;
blind2.sense_clear_upper=200;
blind2.sense_opaque_lower=500;
blind2.sense_opaque_upper=850;
blind2.sense_clear_upper=100;
blind2.sense_opaque_lower=150;
blind2.sense_opaque_upper=800;
blind2.sense_end_lower=850;
blind2.sense_end_upper=1024;
blind1.speedfactorLow=28;
blind1.speedfactorHigh=24.5;
blind2.speedfactorLow=28;
blind2.speedfactorHigh=24.5;
blind2.start_first_clear=27;
blind2.simulated_acc_dec=-150;
blind2.simulated_acc_inc=200;
@ -222,8 +222,8 @@ void setup() {
blind2.softlimit_max=2500;
//Test
blind1.mode = MODE_FIND_END;
blind1.mode_find_end_state=0; //reset mode find state
//blind1.mode = MODE_FIND_END;
//blind1.mode_find_end_state=0; //reset mode find state
//blind2.mode = MODE_FIND_END;
//blind2.mode_find_end_state=0; //reset mode find state

Loading…
Cancel
Save