Skip to content
Snippets Groups Projects
Select Git revision
  • 1249c24fa856a54b4005a5ba9728fc509828adb8
  • master default protected
  • condition_monitoring
  • add_smart_forestry_features
  • add_cc4w_features
  • add_SiteStruct_features
  • s3i_v3
  • RIF-waldboden40
  • message_callbacks
  • response_handling_with_async_events
  • fix_enum
  • Einarbeitung_Peng
  • 16-add-Classes-from-DigiKomForst-project
  • digiKomForstServices
  • update_doc
  • 12-emitting-named-events-crashes-application
  • DZ-Wald
  • 1.0.0
  • 0.2.12
  • 0.2.11
  • 0.2.10
  • 0.2.9
  • 0.2.8
  • 0.2.7
  • 0.2.6
  • 0.2.5.3
  • 0.2.5.2
  • 0.2.5.1
  • 0.2.5
  • v0.2.0
30 results

accepts_shield_commands.py

Blame
  • GromeTT's avatar
    GromeTT authored and Jiahang Chen committed
    c930e5ac
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    accepts_shield_commands.py 994 B
    from ml.ml40.features.functionalities.functionality import Functionality
    
    
    class AcceptsShieldCommands(Functionality):
        """This functionality signalizes that the thing's shield can be moved remotely
        via S3I-B messages ."""
    
        def __init__(self, namespace="fml40", name="", identifier="", parent=None):
            """Initializes the object.
    
            :param name:  Object name
            :param identifier: Identifier
    
            """
            super().__init__(
                namespace=namespace, name=name, identifier=identifier, parent=parent
            )
    
        def shieldDown(self, speed):
            """roll down the winch with specified speed
    
            :param speed: speed
            :type speed: float
            """
            print("shield moves down with the speed {}".format(speed))
    
        def shieldUp(self, speed):
            """
            roll up the winch with specified speed
    
            :param speed: speed
            :type speed: float
            """
            print("shield moves up with the speed {}".format(speed))