public void SetDerivativeGain(DirectionProfile profile, double dGain)
 {
     Microcontroller.SetDerivativeGain(controllerChannel, (int)profile, dGain);
     PidProfiles[profile].DerivativeGain = dGain;
 }
 public void SetIntegralGain(DirectionProfile profile, double iGain)
 {
     Microcontroller.SetIntegralGain(controllerChannel, (int)profile, iGain);
     PidProfiles[profile].IntegralGain = iGain;
 }
 public void SetProportionalGain(DirectionProfile profile, double pGain)
 {
     Microcontroller.SetProportionalGain(controllerChannel, (int)profile, pGain);
     PidProfiles[profile].ProportionalGain = pGain;
 }
 public void RefreshDerivativeGain(DirectionProfile profile)
 {
     PidProfiles[profile].DerivativeGain = Microcontroller.GetDerivativeGain(controllerChannel, (int)profile);
 }
 public void RefreshIntegralGain(DirectionProfile profile)
 {
     PidProfiles[profile].IntegralGain = Microcontroller.GetIntegralGain(controllerChannel, (int)profile);
 }
 public void RefreshProportionalGain(DirectionProfile profile)
 {
     PidProfiles[profile].ProportionalGain = Microcontroller.GetProportionalGain(controllerChannel, (int)profile);
 }