AltitudeChangeEnergy
public struct AltitudeChangeEnergy : Equatable, Hashable
Specifies the energy that is gained or lost by altitude changes.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Declaration
Swift
public init ( consumptionForAltitudeGain: Measurement<TTUnitElectricEfficiency>, recuperationForAltitudeLoss: Measurement<TTUnitElectricEfficiency> ) throws
Parameters
consumptionForAltitudeGain
Specifies the electric energy the vehicle consumes by going uphill (gaining elevation), e.g., kilowatt hours per kilometer. Applicable only for electric engines.
recuperationForAltitudeLoss
Specifies the energy recouped while going downhill (losing altitude), e.g., kilowatt hours per kilometer. Applicable only for electric engines.
-
Specifies the electric energy the vehicle consumes through going uphill (gaining elevation), e.g., kilowatt hours per kilometer. Applicable only for electric engines.
Declaration
Swift
public let consumptionForAltitudeGain: Measurement<TTUnitElectricEfficiency>
-
Specifies the energy recouped while going downhill (losing altitude), e.g., kilowatt hours per kilometer. Applicable only for electric engines.
Declaration
Swift
public let recuperationForAltitudeLoss: Measurement<TTUnitElectricEfficiency>