-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Cooling: Implement hardware curves in the backend service.
There is a small caveat at the moment, in that the data type of a sensor is considered to be identical for both sensor readings and cooling curve input. In practice, it is possible for a sensor to have more precision than what the hardware cooling curve allows. Since we hard-cast out cooling curves upon use in the backend, that shouldn't be too much of a problem, but it would be better if the information was (properly) transferred to the UI. This is to be done later, as it is not critical for minimum operation.
- Loading branch information
Showing
3 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/Exo/Ui/Exo.Contracts.Ui.Settings/Cooling/HardwareCurveCoolingParameters.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Exo.Contracts.Ui.Settings.Cooling; | ||
|
||
[DataContract] | ||
public sealed class HardwareCurveCoolingParameters | ||
{ | ||
[DataMember(Order = 1)] | ||
public required Guid CoolingDeviceId { get; init; } | ||
[DataMember(Order = 2)] | ||
public required Guid CoolerId { get; init; } | ||
[DataMember(Order = 3)] | ||
public required Guid SensorId { get; init; } | ||
|
||
[DataMember(Order = 4)] | ||
public required CoolingControlCurve ControlCurve { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters