Implement CurrentLimiter and spare power mode
This commit is contained in:
@@ -101,41 +101,9 @@ namespace TestApp.Configuration
|
||||
ChargerDriver = Settings.DEFAULT_CHARGER_DRIVER,
|
||||
ChargerAddress = Settings.DEFAULT_CHARGER_ADDRESS,
|
||||
ChargerPort = Settings.DEFAULT_CHARGER_PORT,
|
||||
MaxCurrent = Settings.DEFAULT_MAX_CURRENT,
|
||||
MinNegativePower = Settings.DEFAULT_MIN_NEGATIVE_POWER,
|
||||
Mode = 1,
|
||||
ModeSettings = new ModeSettings[] {
|
||||
new ModeSettings
|
||||
{
|
||||
ProcessVariable = ProcessVariable.ActivePowerPositive,
|
||||
SetPoint = 32,
|
||||
NegativePid = new PidSetting() {
|
||||
KP = 0,
|
||||
KI = 1,
|
||||
KD = 0,
|
||||
},
|
||||
PositivePid = new PidSetting()
|
||||
{
|
||||
KP = 0,
|
||||
KI = 1,
|
||||
KD = 0,
|
||||
}
|
||||
},
|
||||
new ModeSettings
|
||||
{
|
||||
ProcessVariable = ProcessVariable.ActivePowerNegative,
|
||||
SetPoint = 100,
|
||||
NegativePid = new PidSetting() {
|
||||
KP = 0,
|
||||
KI = 1,
|
||||
KD = 0,
|
||||
},
|
||||
PositivePid = new PidSetting()
|
||||
{
|
||||
KP = 0,
|
||||
KI = 1,
|
||||
KD = 0,
|
||||
}
|
||||
},
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user