src/order2checker.py
def order2checker(
        recipe: list,
        mcu: object = None,
        dmm: object = None,
        res: object = None,
        boxRes: list = [0.0]*16
    ):
    """
    Order each message to checker

    Parameters
    ----------
        recipe: list
            0: main
            1-end: option
        mcu: object
            comm2checker.Serial2Mcu
        dmm: object
            comm2dmm.DmmADCMT
        res: object
            comm2resistor.Res
        boxRes: list
            box's each SQ's ohms

    Returns
    ----------
        each message from checker
    """
    mcu.emptySeriBuf(mcu.port)
    majC = recipe[0]
    if majC == 'IGON':
        return odrIGON(recipe, mcu)
    elif majC == 'IGOFF':
        return odrIGOFF(recipe, mcu)
    elif majC == 'RYON':
        return odrRYON(recipe, mcu)
    elif majC == 'RYOFF':
        return odrRYOFF(recipe, mcu)
    elif majC == 'RYDEF':
        return odrRYDEF(recipe, mcu)
    elif majC == 'RYALLOFF':
        return odrRYALLOFF(recipe, mcu)
    elif majC == 'WAIT':
        return odrWAIT(recipe, mcu)
    elif majC == 'CAN':
        return odrCAN(recipe, mcu)
    elif majC == 'MEASA':
        return odrMeasAmpere(recipe, mcu, dmm=dmm)
    elif majC == 'MEASOHM':
        return odrMeasOhm(recipe, mcu, dmm=dmm)
    elif majC[0:5] == 'LEVEL':
        return odrLevelingOhm(recipe, mcu, res=res, boxRes=boxRes)
    else:
        return 0

    Order each message to checker

    Parameters
    ----------
        recipe: list
            0: main
            1-end: option
        mcu: object
            comm2checker.Serial2Mcu
        dmm: object
            comm2dmm.DmmADCMT
        res: object
            comm2resistor.Res
        boxRes: list
            box's each SQ's ohms

    Returns
    ----------
        each message from checker
    
Order each message to checker
Parameters



Returns

each message from checker
Order each message to checker Parameters Returns each message from checker
def order2checker(
        recipe: list,
        mcu: object = None,
        dmm: object = None,
        res: object = None,
        boxRes: list = [0.0]*16
    ):
    mcu.emptySeriBuf(mcu.port)
    majC = recipe[0]
    if majC == 'IGON':
        return odrIGON(recipe, mcu)
    elif majC == 'IGOFF':
        return odrIGOFF(recipe, mcu)
    elif majC == 'RYON':
        return odrRYON(recipe, mcu)
    elif majC == 'RYOFF':
        return odrRYOFF(recipe, mcu)
    elif majC == 'RYDEF':
        return odrRYDEF(recipe, mcu)
    elif majC == 'RYALLOFF':
        return odrRYALLOFF(recipe, mcu)
    elif majC == 'WAIT':
        return odrWAIT(recipe, mcu)
    elif majC == 'CAN':
        return odrCAN(recipe, mcu)
    elif majC == 'MEASA':
        return odrMeasAmpere(recipe, mcu, dmm=dmm)
    elif majC == 'MEASOHM':
        return odrMeasOhm(recipe, mcu, dmm=dmm)
    elif majC[0:5] == 'LEVEL':
        return odrLevelingOhm(recipe, mcu, res=res, boxRes=boxRes)
    else:
        return 0
def order2checker ( recipe : list , mcu : object = None , dmm : object = None , res : object = None , boxRes : list = [ 0.0 ] * 16 ) : mcu . emptySeriBuf ( mcu . port ) majC = recipe [ 0 ] if majC == 'IGON' : return odrIGON ( recipe , mcu ) elif majC == 'IGOFF' : return odrIGOFF ( recipe , mcu ) elif majC == 'RYON' : return odrRYON ( recipe , mcu ) elif majC == 'RYOFF' : return odrRYOFF ( recipe , mcu ) elif majC == 'RYDEF' : return odrRYDEF ( recipe , mcu ) elif majC == 'RYALLOFF' : return odrRYALLOFF ( recipe , mcu ) elif majC == 'WAIT' : return odrWAIT ( recipe , mcu ) elif majC == 'CAN' : return odrCAN ( recipe , mcu ) elif majC == 'MEASA' : return odrMeasAmpere ( recipe , mcu , dmm = dmm ) elif majC == 'MEASOHM' : return odrMeasOhm ( recipe , mcu , dmm = dmm ) elif majC [ 0 : 5 ] == 'LEVEL' : return odrLevelingOhm ( recipe , mcu , res = res , boxRes = boxRes ) else : return 0
Order each message to checker
Parameters
Order each message to checker Parameters
"""
    Order each message to checker

    Parameters
    ----------
        recipe: list
            0: main
            1-end: option
        mcu: object
            comm2checker.Serial2Mcu
        dmm: object
            comm2dmm.DmmADCMT
        res: object
            comm2resistor.Res
        boxRes: list
            box's each SQ's ohms

    Returns
    ----------
        each message from checker
    """
recipe
list
mcu
object
dmm
object
res
object
boxRes
list