modbus_sterring/src/agv.py
def update_time(self):
        """
        Update the time of the robot
        
        """
        try:
            SYSTEM_TICK_MS = self.client.read_holding_registers(self.__SYSTEM_TICK_MS_ADDR,2)
            if(SYSTEM_TICK_MS):
                self.__ROBOT_TIME = SYSTEM_TICK_MS[0]
                return True
            else:
                self.log_error("Time error")
                self.__ERROR_COUNTER+=1
                return False
        except:
            self.__ERROR_COUNTER+=1
            logging.error("Time error")

        Update the time of the robot
        
        
Update the time of the robot
Update the time of the robot
def update_time(self):
        try:
            SYSTEM_TICK_MS = self.client.read_holding_registers(self.__SYSTEM_TICK_MS_ADDR,2)
            if(SYSTEM_TICK_MS):
                self.__ROBOT_TIME = SYSTEM_TICK_MS[0]
                return True
            else:
                self.log_error("Time error")
                self.__ERROR_COUNTER+=1
                return False
        except:
            self.__ERROR_COUNTER+=1
            logging.error("Time error")
def update_time ( self ) : try : SYSTEM_TICK_MS = self . client . read_holding_registers ( self . __SYSTEM_TICK_MS_ADDR , 2 ) if ( SYSTEM_TICK_MS ) : self . __ROBOT_TIME = SYSTEM_TICK_MS [ 0 ] return True else : self . log_error ( "Time error" ) self . __ERROR_COUNTER += 1 return False except : self . __ERROR_COUNTER += 1 logging . error ( "Time error" )
Update the time of the robot
Update the time of the robot
"""
        Update the time of the robot
        
        """
self