Crazyflie Raspberry Pi sd-card image

Firmware/software/electronics/mechanics
Post Reply
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Crazyflie Raspberry Pi sd-card image

Post by marcus »

Hi everyone!

The QT dependencies have been removed from the cfheadless client and it's been merged to the default branch. So we are now thinking about creating an sd-cad image for the Raspberry Pi (based on Raspberrian) pre-configured with everything needed to fly. There's a lot of good tips on the wiki that we would like to get in as well.

The idea is to include everything needed to fly in a first image but ultimately what we would like is to create an image that is just plug-and-play. You would then just boot up, insert the radio and the headless client would continuously loop looking for Crazyflies/input devices and connect to the first ones that are found. This would require some more changes to the cfheadless client but the idea is to add a command line argument like --auto-connect to achieve this.

There's one problem (at least..) with creating a plug-and-play image: the input devices. From the beginning we had the idea of connecting the input device configurations to specific devices (like using the VID:PID of the device or using the device name) but since one configuration worked on multiple input devices this wasn't optimal. Instead we now save the last configuration used for a specific device (using the name). So if you plug a PS3 controller and select PS3_Mode_1 and then an XBOX 360 controller selecting another configuration, plugging in the PS3 controller again will automatically select the PS3_Mode_1 config since it was the last one used with the device.

Currently the idea is to have a list of input devices that a configuration is good for and store it inside the configuration. This wouldn't be something (at least not now) that would be configurable from the UI, instead you would have to enter it manually. Unfortunately the device VID:PID is not the same for the original as for the copies of controllers (and neither is the name) so this list could potentially get pretty long.

Are there any other ideas on how to solve this problem?

/Marcus
marcus
Bitcraze
Posts: 659
Joined: Mon Jan 28, 2013 7:02 pm
Location: Sweden
Contact:

Re: Crazyflie Raspberry Pi sd-card image

Post by marcus »

The first version of the pre-configured Raspberry Pi image has been uploaded and it's available as a torrent. It should contain everything needed to fly and if there are any issues or ideas drop by the Bitbucket tracker and add them.

There's more information on the wiki and basically this first version is made from the contributed documentation on the Raspberry Pi page in the hacks and modes section of the wiki.
Post Reply