mdl29 / donkeycarLPH

Front + backend to manage donkeycars during demonstrations events
4 stars 8 forks source link

Update jsfw version and add doc #242

Closed viandoxdev closed 1 year ago

github-actions[bot] commented 1 year ago

Build for 2aad311270bc2c962fe98333fc8100301009a4e9 is here : 2aad311270bc2c962fe98333fc8100301009a4e9-update_jsfw.tar.gz

Build for 0e7a5321f040d16c50e2246af336dff2e293d3f6 is here : 0e7a5321f040d16c50e2246af336dff2e293d3f6-update_jsfw.tar.gz Build for dc15afacd714fa237f8472916c02f4647fe478ec is here : dc15afacd714fa237f8472916c02f4647fe478ec-update_jsfw.tar.gz

Benvii commented 1 year ago

I tested it, the controller LED color is always green (#00ff00).

I have added logs on the car, LED color is correctly written into jsfw fifo :

Feb 11 23:08:51 monkecar python[2890]: DEBUG:my_joystick:my_controller.py:write_to_controller with color_hex "#FF0000"
Feb 11 23:08:51 monkecar python[2890]: DEBUG:my_joystick:{"index": 0, "led_color": "#FF0000", "flash": [0, 0]}
Feb 11 23:08:51 monkecar python[2890]: INFO:donkeycar.parts.controller:Opening %s... /dev/input/js0
Feb 11 23:08:51 monkecar python[2890]: INFO:donkeycar.parts.controller:Device name: JSFW Virtual Device
Feb 11 23:08:51 monkecar python[2890]: DEBUG:my_joystick:my_controller.py:write_to_controller with color_hex "#FF0000"
Feb 11 23:08:51 monkecar python[2890]: DEBUG:my_joystick:{"index": 0, "led_color": "#FF0000", "flash": [0, 0]}

Meanwhile on the JSFW server side it displays (green color: #00ff00) :

HID:     Forgetting device 'Sony Computer Entertainment Wireless Controller' (811105c4054c0003)
HID:     New device, Sony Computer Entertainment Wireless Controller [ctr] (event31: 811105c4054c0003)
CONN(0): [0] Found suitable [ctr] device: 'Sony Computer Entertainment Wireless Controller' (811105c4054c0003)
CONN(0):  Got message: 
HID:     (811105c4054c0003) Controller state: #00ff00 flash: (0, 0) rumble: (0, 0)
CONN(0):  Got message: 
HID:     (811105c4054c0003) Controller state: #00ff00 flash: (0, 0) rumble: (0, 0)
CONN(0):  Got message: 
HID:     (811105c4054c0003) Controller state: #00ff00 flash: (0, 0) rumble: (0, 0)

@viandoxdev can you take a look at it ?

viandoxdev commented 1 year ago

Wrong LED color displayed. See PR comment for details.

Should be fixed, hopefully.