/// <summary>
        /// Initicates the drain sequence. Will start the associated timer and set the GPIO pins.
        /// to turn on the correct valves.
        /// </summary>
        public void Drain()
        {
            IsDrainActive = true;

            OpenValve(_outPin_Open, _outPin_Close);

            OpenValve(_wastePin_Open, _wastePin_Close);

            CloseValve(_inPin_Open, _inPin_Close);

            CloseValve(_fillSaltPin_Open, _fillSaltPin_Close);

            TimerController.SetPumpOnDelay();
        }
        /// <summary>
        /// Starts the Fill fresh water
        /// </summary>
        public void FillFreshWater()
        {
            IsFillActive = true;

            OpenValve(_inPin_Open, _inPin_Close);

            OpenValve(_fillFreshPin_Open, _fillFreshPin_Close);

            CloseValve(_outPin_Open, _outPin_Close);

            CloseValve(_wastePin_Open, _wastePin_Close);

            TimerController.SetPumpOnDelay();
        }
Beispiel #3
0
 /// <summary>
 /// GUI click event for draining.  Will start the associated timer and set the selected GPIO pins LOW
 /// to turn on the correct valves.
 /// </summary>
 public void Drain()
 {
     IsDrainActive = true;
     Console.WriteLine($"----------------{DateTime.Now}: DRAIN ON");
     TimerController.SetPumpOnDelay();
 }
Beispiel #4
0
 /// <summary>
 /// Starts the Fill fresh water
 /// </summary>
 public void FillFreshWater()
 {
     IsFillActive = true;
     Console.WriteLine($"----------------{DateTime.Now}: FILL FRESH ON");
     TimerController.SetPumpOnDelay();
 }