Class PositionBar


  • public class PositionBar
    extends BaseComponent
    Charging bars control component module
    Version:
    1.0.0
    Author:
    wmy
    • Constructor Detail

      • PositionBar

        public PositionBar()
    • Method Detail

      • startTightening

        public void startTightening()
        lock charge bars
      • startReleasing

        public void startReleasing()
        release charge bars
      • resetState

        public void resetState()
        reset charge bars status
      • setStateCallback

        public void setStateCallback​(PositionBarStateCallback callback)
        Instance of implementing event callback interface for charging bars control module
        Parameters:
        callback - Instance of event callback interface for charging bars control module
      • onPost

        public void onPost()
        Called back upon receipt of a status report from the charge bars control module

        Callbacks from the SDK itself

      • onOperateReply

        public void onOperateReply​(ServiceCode code,
                                   ServiceResult result)
        Called back when feedback is received from the service

        Callbacks from the SDK itself

        Parameters:
        code - Device Service Code
        result - Feedback result of service delivery
      • getConnectionState

        public ConnStatus getConnectionState()
        get charging bars component connection status
        Returns:
        component connection status
      • setConnectionState

        public void setConnectionState​(ConnStatus connectionState)
      • getPositionBarState

        public PositionBarState getPositionBarState()
        Get charging bars status
        Returns:
        charging bars status
      • setPositionBarState

        public void setPositionBarState​(PositionBarState positionBarState)
      • getBarLimitSwitchStateSet

        public byte getBarLimitSwitchStateSet()
        Get the limit sensor trigger status code, 8bit from low to high represents the sensor S1 to S8 trigger state, 0 means no trigger, 1 means trigger.
        Returns:
        Limit sensor trigger status code
      • setBarLimitSwitch1FaultState

        public void setBarLimitSwitch1FaultState​(FaultState state)
      • setBarLimitSwitch2FaultState

        public void setBarLimitSwitch2FaultState​(FaultState state)
      • setBarLimitSwitch3FaultState

        public void setBarLimitSwitch3FaultState​(FaultState state)
      • setBarLimitSwitch4FaultState

        public void setBarLimitSwitch4FaultState​(FaultState state)
      • setBarLimitSwitch5FaultState

        public void setBarLimitSwitch5FaultState​(FaultState state)
      • setBarLimitSwitch6FaultState

        public void setBarLimitSwitch6FaultState​(FaultState state)
      • setBarLimitSwitch7FaultState

        public void setBarLimitSwitch7FaultState​(FaultState state)
      • setBarLimitSwitch8FaultState

        public void setBarLimitSwitch8FaultState​(FaultState state)
      • getBarLimitSwitchFaultStateSet

        public byte getBarLimitSwitchFaultStateSet()
        Get the limit sensor fault status code, 8bit from low to high represent the sensor S1 to S8 fault status, 0 means normal, 1 means fault.
        Returns:
        Limit sensor fault status code
      • setMotor1FaultState

        public void setMotor1FaultState​(FaultState state)
      • setMotor2FaultState

        public void setMotor2FaultState​(FaultState state)
      • setMotor3FaultState

        public void setMotor3FaultState​(FaultState state)
      • setMotor4FaultState

        public void setMotor4FaultState​(FaultState state)
      • getMotorFaultStateSet

        public byte getMotorFaultStateSet()
        Get the Motors operation fault status code, low 4bit from low to high indicate motor Motor1 to Motor4 fault status respectively, 0 indicates normal, 1 indicates fault.
        Returns:
        Motors operation fault status code
      • getVibration

        public int getVibration()
        Get the vibration value: 0~1000, dimensionless, representing the relative vibration level
        Returns:
        vibration value
      • setVibration

        public void setVibration​(int vibration)
      • getTilt

        public float getTilt()
        Get the platform inclination in degree.
        Returns:
        platform inclination
      • setTilt

        public void setTilt​(float tilt)