Battery
USI.Core
Public SDK type.
public sealed class Battery : IndexedAircraftComponentNodeMethods
TryGetChargeWattHoursAsync
public Task<USIResult<Double>> TryGetChargeWattHoursAsync()Gets the battery's present stored energy in watt-hours.
TryGetConfiguredCapacityWattHoursAsync
public Task<USIResult<Double>> TryGetConfiguredCapacityWattHoursAsync()Gets the battery's configured energy capacity in watt-hours.
TryGetDischargeCurrentAmpsAsync
public Task<USIResult<Double>> TryGetDischargeCurrentAmpsAsync()Gets current delivered by the battery, excluding charging current. Zero does not imply that no charging is taking place.
TryGetFailureDetectedAsync
public Task<USIResult<Boolean>> TryGetFailureDetectedAsync()Gets whether this battery has failed.
TryGetHighVoltageFailureDetectedAsync
public Task<USIResult<Boolean>> TryGetHighVoltageFailureDetectedAsync()TryGetIndicatedVoltageAsync
public Task<USIResult<Double>> TryGetIndicatedVoltageAsync()Gets the cockpit-indicated battery voltage when the provider exposes it separately from actual battery voltage.
TryGetLowVoltageFailureDetectedAsync
public Task<USIResult<Boolean>> TryGetLowVoltageFailureDetectedAsync()TryGetNetDischargeCurrentAmpsAsync
public Task<USIResult<Double>> TryGetNetDischargeCurrentAmpsAsync()Gets signed net discharge current when known; negative means charging. Ambiguous zero reports are unavailable.
TryGetRemainingChargeRatioAsync
public Task<USIResult<Double>> TryGetRemainingChargeRatioAsync()TryGetSwitchEnabledAsync
public Task<USIResult<Boolean>> TryGetSwitchEnabledAsync()TryGetVoltageAsync
public Task<USIResult<Double>> TryGetVoltageAsync()Gets battery voltage when its meaning is known. An ambiguous non-supplying reading is unavailable, not assumed to be a flat battery.
TrySetSwitchEnabledAsync
public Task<USIResult> TrySetSwitchEnabledAsync(bool enabled)