Struct PowerSchedule
How often a node samples as its battery drains, in whole seconds.
public readonly record struct PowerSchedule : IEquatable<PowerSchedule>
- Implements
- Inherited Members
Constructors
PowerSchedule(ulong, ulong, ulong, float, float, float)
How often a node samples as its battery drains, in whole seconds.
public PowerSchedule(ulong ActiveSecs, ulong SaverSecs, ulong CriticalSecs, float SaverBelow = 0.5, float CriticalBelow = 0.2, float Hysteresis = 0.05)
Parameters
ActiveSecsulongSeconds between samples at a healthy charge.
SaverSecsulongSeconds between samples while conserving.
CriticalSecsulongSeconds between samples when critically low.
SaverBelowfloatEnter the saver cadence below this state of charge; 0.5 unless given.
CriticalBelowfloatEnter the critical cadence below this state of charge; 0.2 unless given.
HysteresisfloatHow far above a threshold the charge must climb to leave the lower cadence; 0.05 unless given.
Properties
ActiveSecs
Seconds between samples at a healthy charge.
public ulong ActiveSecs { get; init; }
Property Value
CriticalBelow
Enter the critical cadence below this state of charge; 0.2 unless given.
public float CriticalBelow { get; init; }
Property Value
CriticalSecs
Seconds between samples when critically low.
public ulong CriticalSecs { get; init; }
Property Value
Hysteresis
How far above a threshold the charge must climb to leave the lower cadence; 0.05 unless given.
public float Hysteresis { get; init; }
Property Value
SaverBelow
Enter the saver cadence below this state of charge; 0.5 unless given.
public float SaverBelow { get; init; }
Property Value
SaverSecs
Seconds between samples while conserving.
public ulong SaverSecs { get; init; }