Controls flow. Holds a reference to a FlowSensor instance.  
 More...
#include <FlowController.h>
 | 
|   | FlowController (const FlowSensor *fs, const ConfigStore *cs, uint8_t solenoidPin, uint8_t pwmRes) | 
|   | Constructor.  
  | 
|   | 
| void  | update () | 
|   | 
| void  | updatePIDParameters () | 
|   | 
|   | Controller (const ConfigStore *cs, double Kp, double Ki, double Kd, double Kf, uint16_t dt, double cvMin, double cvMax, double defaultSP, double defaultCV) | 
|   | Constructor.  
  | 
|   | 
| void  | getTerms (double &pTerm, double &iTerm, double &dTerm) const | 
|   | Get the three PID terms by reference.  
  | 
|   | 
| void  | update () | 
|   | Run the controller: Typically reads a sensor, runs a cycle of the PID loop and drives some actuator.  
  | 
|   | 
| void  | updatePIDParameters () | 
|   | Update the PID parameters from the configStore.  
  | 
|   | 
| const ConfigStore *  | getConfigStore () | 
|   | Get a pointer to the ConfigStore instance.  
  | 
|   | 
Controls flow. Holds a reference to a FlowSensor instance. 
Definition at line 11 of file FlowController.h.
 
◆ FlowController()
      
        
          | FlowController::FlowController  | 
          ( | 
          const FlowSensor * |           fs,  | 
        
        
           | 
           | 
          const ConfigStore * |           cs,  | 
        
        
           | 
           | 
          uint8_t |           solenoidPin,  | 
        
        
           | 
           | 
          uint8_t |           pwmRes ) | 
        
      
 
 
◆ update()
      
        
          | void FlowController::update  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ updatePIDParameters()
      
        
          | void FlowController::updatePIDParameters  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ fs
◆ pwmRes
  
  
      
        
          | const uint8_t FlowController::pwmRes | 
         
       
   | 
  
private   | 
  
 
 
◆ solenoidPin
  
  
      
        
          | const uint8_t FlowController::solenoidPin | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: