Exemple #1
0
import logging
import os

reg = Registrator()
call = formula.call

load_config = True
create_raw_config_file = False
config_file_path = os.path.join(os.path.dirname(__file__), "data/timings.ini")

#===============================================================================
#     CANGateway
#===============================================================================
# Processing Time per message
GW_TRANSITION_PROCESS = 0.00000001
reg.reg_simp_timing('StdCANBus', 'SCB_GATHER_MSGS', 'LONG', 2)

#===============================================================================
#    COMPONENTS.BUS
#    StdCANBus
#===============================================================================

# Time to gather information (!= 0)
SCB_GATHER_MSGS = 0
reg.reg_simp_timing('StdCANBus', 'SCB_GATHER_MSGS', 'LONG', 2)
reg.reg_simp_timing('StdCANBus', 'SCB_GATHER_MSGS', 'FAST', sys.float_info.min)
reg.reg_simp_timing('StdCANBus', 'SCB_GATHER_MSGS', 'DEFAULT',
                    sys.float_info.min)
reg.reg_simp_timing('StdCANBus', 'SCB_GATHER_MSGS', 'CUSTOMIZED', 0)

# Time to grab highest priority message
import logging
import os

reg = Registrator()
call = formula.call

load_config = True
create_raw_config_file = False
config_file_path = os.path.join(os.path.dirname(__file__), "data/timings.ini")

#===============================================================================
#     CANGateway
#===============================================================================
# Processing Time per message
GW_TRANSITION_PROCESS = 0.00000001
reg.reg_simp_timing('StdCANBus', 'SCB_GATHER_MSGS', 'LONG', 2)

#===============================================================================
#    COMPONENTS.BUS
#    StdCANBus
#===============================================================================

# Time to gather information (!= 0)
SCB_GATHER_MSGS = 0
reg.reg_simp_timing('StdCANBus', 'SCB_GATHER_MSGS', 'LONG', 2)
reg.reg_simp_timing('StdCANBus', 'SCB_GATHER_MSGS', 'FAST', sys.float_info.min)
reg.reg_simp_timing('StdCANBus', 'SCB_GATHER_MSGS', 'DEFAULT', sys.float_info.min)
reg.reg_simp_timing('StdCANBus', 'SCB_GATHER_MSGS', 'CUSTOMIZED', 0)

# Time to grab highest priority message 
SCB_GRAB_PRIO_MSG = 0