Power takeoff
State
Status
Declaration
getStatus()
Example
val state:PowerTakeoff.State
assertTrue(state.status.value == ActiveState.ACTIVE)
// Power take-off is active
Engaged
Declaration
getEngaged()
Example
val state:PowerTakeoff.State
assertTrue(state.engaged.value == PowerTakeoff.Engaged.ENGAGED)
// Power take-off is engaged
Setters
Activate deactivate power takeoff
Declaration
public ActivateDeactivatePowerTakeoff(ActiveState status)
Example
val activateDeactivatePowerTakeoff = PowerTakeoff.ActivateDeactivatePowerTakeoff(ActiveState.ACTIVE)
Getters
Get Power Take-Off property availability information
Declaration
public GetStateAvailability()
public GetStateAvailability(byte... propertyIdentifiers)
Example
// get all property availabilities
val getAvailability = GetStateAvailability()
// get status and engaged property availabilities
val getAvailabilityProperties = GetStateAvailability(0x01, 0x02)
Get Power Take-Off properties
Declaration
public GetState()
public GetState(byte... propertyIdentifiers)
Example
// get all properties
val getState = GetState()
// get status and engaged properties
val getStateProperties = GetState(0x01, 0x02)