Калибровка датчика тока. Корректно замеряем напряжение на аккуме.

This commit is contained in:
ftc
2024-04-01 22:15:06 +03:00
parent 74e269b563
commit dcaccbaaf2
12 changed files with 203 additions and 30 deletions
+11 -1
View File
@@ -60,6 +60,16 @@ namespace charger_gui
model.IsCharging = !model.IsCharging;
}
private void CalibrateButton_Click(object sender, RoutedEventArgs e)
{
if (model.CurrentOperation != null)
{
model.CurrentOperation.Cancel();
}
model.CurrentOperation = new CalibrateOperation(log, model);
model.CurrentOperation.Start();
}
private void DischargeButton_Click(object sender, RoutedEventArgs e)
{
if (model.CurrentOperation != null)
@@ -92,7 +102,7 @@ namespace charger_gui
protected override void OnClosed(EventArgs e)
{
base.OnClosed(e);
Application.Current.Shutdown();
Environment.Exit(0);
}
}
}