dentedghost / joycontrol_bot_designer

GNU General Public License v3.0
2 stars 0 forks source link

Bug: commands ('ls up,100',) cmd args ls ['up,100'] #4

Open dentedghost opened 4 years ago

dentedghost commented 4 years ago

File "/home/pi/Development/joycontrol_bot_designer/command.py", line 298, in run await asyncio.gather(self.get_txt(), self.get_cmd()) File "/home/pi/Development/joycontrol_bot_designer/command.py", line 285, in get_txt await self.runScript() File "/home/pi/Development/joycontrol_bot_designer/command.py", line 278, in runScript await self.pressButton(command) File "/home/pi/Development/joycontrol_bot_designer/command.py", line 112, in pressButton await self.cmd_stick(cmd, dir, sec) File "/home/pi/Development/joycontrol_bot_designer/command.py", line 179, in cmd_stick stick = self.controller_state.l_stick_state AttributeError: 'CCLI' object has no attribute 'controller_state'

dentedghost commented 4 years ago

Research: with utils.get_output(path=args.log, default=None) as capture_file: factory = controller_protocol_factory(controller, spi_flash=spi_flash) transport, protocol = await create_hid_server(factory, ctl_psm=17,itr_psm=19, capture_file=capture_file)

    controller_state = protocol.get_controller_state()

    # Create command line interface and add some extra commands
    cli = command.CCLI(controller_state)