modbus_sterring/src/agv.py
def check_all_info(self):
        """
        Check if all the information are available

        
        """
        base_data_struct = self.client.read_holding_registers(self.__BASE_DATA_STRUCT_ADDR,13)
        manual_control_struct = self.client.read_holding_registers(self.MANUAL_CONTROL_STRUCT,7)
        SYSTEM_TICK_MS = self.client.read_holding_registers(self.__SYSTEM_TICK_MS_ADDR,2)
        if(base_data_struct and manual_control_struct and SYSTEM_TICK_MS):
            return("Base: ",base_data_struct," Manual:",manual_control_struct," X: ",self.__POS_X," Y: ",self.__POS_Y," R: ",self.__POS_R)
        else:
            self.log_error("Check all info error")
            logging.error("Check all info error")
            self.__ERROR_COUNTER+=1
            return("Error check_all_info")

        Check if all the information are available

        
        
Check if all the information are available
Check if all the information are available
def check_all_info(self):
        base_data_struct = self.client.read_holding_registers(self.__BASE_DATA_STRUCT_ADDR,13)
        manual_control_struct = self.client.read_holding_registers(self.MANUAL_CONTROL_STRUCT,7)
        SYSTEM_TICK_MS = self.client.read_holding_registers(self.__SYSTEM_TICK_MS_ADDR,2)
        if(base_data_struct and manual_control_struct and SYSTEM_TICK_MS):
            return("Base: ",base_data_struct," Manual:",manual_control_struct," X: ",self.__POS_X," Y: ",self.__POS_Y," R: ",self.__POS_R)
        else:
            self.log_error("Check all info error")
            logging.error("Check all info error")
            self.__ERROR_COUNTER+=1
            return("Error check_all_info")
def check_all_info ( self ) : base_data_struct = self . client . read_holding_registers ( self . __BASE_DATA_STRUCT_ADDR , 13 ) manual_control_struct = self . client . read_holding_registers ( self . MANUAL_CONTROL_STRUCT , 7 ) SYSTEM_TICK_MS = self . client . read_holding_registers ( self . __SYSTEM_TICK_MS_ADDR , 2 ) if ( base_data_struct and manual_control_struct and SYSTEM_TICK_MS ) : return ( "Base: " , base_data_struct , " Manual:" , manual_control_struct , " X: " , self . __POS_X , " Y: " , self . __POS_Y , " R: " , self . __POS_R ) else : self . log_error ( "Check all info error" ) logging . error ( "Check all info error" ) self . __ERROR_COUNTER += 1 return ( "Error check_all_info" )
Check if all the information are available
Check if all the information are available
"""
        Check if all the information are available

        
        """
self