OpenSprinkler Forums OpenSprinkler Unified Firmware Integrating flow sensor with sequencing? Reply To: Integrating flow sensor with sequencing?

#39978

ShawnHarte
Participant

Min and max combined take less cpu time than ‘if’ so:

if(max(min(flow,max_threshold),min_threshold))!=flow){stop};

would be faster, and easier (clock cycles not readability) on the arduino based systems. Even though I don’t know how close everything is running to max capability of the chip, allowing for future features is nice.


@tom
how would the OS know while scheduling that it could place several zones together? Or were you thinking A) run a test and then schedule them, B) have it continue to add zones till capacity is reached?