def next_command(self, delta): command = self.command_receiver.next_command(delta) if not self.is_running(): self.logger.warning('DecodingCommandReceiver: poll while not running; returning empty command') return Command(delta) assert command if command.is_valid(): command = self.decoder.decode(command) assert command return command
def next_command(self, delta): return Command(delta)