lpcmanager

Parents 33eb1d70db63
Children eb8d80e3ee88
Add MM3 definition, distinguish headless products (remote/mobile HMI) and local HMI display.
  • +12 -1
    LPCArch.py
  • +2 -2
    LPCSVGHMI.py
  • --- a/LPCArch.py Fri Oct 06 10:54:07 2023 +0200
    +++ b/LPCArch.py Wed Nov 22 11:18:23 2023 +0100
    @@ -6,8 +6,9 @@
    MC9_modules = ['MC9', 'MW1']
    SOM28_modules = MC9_modules + WX_GOT_modules
    # Temporary until preempt merge in all som6 modules
    -PREEMPTSOM6_modules = ['MM1', 'MM2']
    +PREEMPTSOM6_modules = ['MM1', 'MM2', 'MM3']
    SOM6_modules = SVG_GOT_modules + PREEMPTSOM6_modules
    +LOCAL_SVG_modules = SVG_GOT_modules + ['MM3']
    product_descriptions = {
    "MC8": {
    @@ -98,6 +99,16 @@
    ("On Board", "SOM_OnBoard"),
    ("Devices", "SOM_Devices")],
    "CAN":False
    + },
    + "MM3" :{
    + "type": "SOM",
    + "header": "MC10",
    + # "LDFLAGS": '"' + os.path.join(RightPath, "i2c_smt_lib.a") + '"',
    + "features":[
    + ("Right", "SOM6_Right"),
    + ("On Board", "SOM_OnBoard"),
    + ("Devices", "SOM_Devices")],
    + "CAN":False
    }
    }
    --- a/LPCSVGHMI.py Fri Oct 06 10:54:07 2023 +0200
    +++ b/LPCSVGHMI.py Wed Nov 22 11:18:23 2023 +0100
    @@ -2,7 +2,7 @@
    from svghmi.svghmi import SVGHMI, SVGHMILibrary, paths
    import os
    -from LPCArch import GetLPCProduct, SVG_GOT_modules
    +from LPCArch import GetLPCProduct, LOCAL_SVG_modules
    # set default values so that COG browser is managed by SVGHMI
    SVGHMI.XSD = """<?xml version="1.0" encoding="utf-8" ?>
    @@ -53,7 +53,7 @@
    def get_SVGHMI_options(self):
    svghmi_options = old_get_SVGHMI_options(self)
    - if product in SVG_GOT_modules:
    + if product in LOCAL_SVG_modules:
    portrait = self.GetParamsAttributes("SVGHMI.Portrait")["value"]
    rotate180 = self.GetParamsAttributes("SVGHMI.Rotate180")["value"]