device mappings not saving

Post here to get support
Post Reply
roxx727
Beginner
Posts: 1
Joined: Sun May 12, 2013 9:29 pm

device mappings not saving

Post by roxx727 »

Using a sidewinder2 joystick controller at the moment. The controller is recognized by windows and by the crazyflie client.
I can map the controls and name the config, save lights up as it should.
Named the file, clicked save.
I get a dialog box stating that the software needs to restart to use the controller.
When I open up the software again it throws an error message...

Input device error
--------------------------------------------------------
Error while opening/initializing input device

Traceback (most recent call last):
File "clclient\utils\input.puc", line 225, in startInput
Value Error: u'sidewinder' is not in list

<OK button>
----------------------------------------------------

All this after fighting with windows and many various controllers, the sidewinder has actually fired up the copter once, but the controls were not working correctly so I tried reconfiguring it and have never gotten it to save a config since.
allynbauer
Beginner
Posts: 12
Joined: Mon May 06, 2013 6:59 pm

Re: device mappings not saving

Post by allynbauer »

The

Code: Select all

u
in

Code: Select all

u'sidewinder'
indicates unicode, which would suggest a string encoding issue. Perhaps you can inspect the json conf file which corresponds to your controller and make sure there are no weird characters present. The default name of the USB device may have included some unicode trash which is poorly handled by the client.
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: device mappings not saving

Post by marcus »

Hi,

Did you ever try to load a previous configuration? If so it might be this issue. Could you try to delete the configuration as mentioned in that issue?

/Marcus
Post Reply