Crazyflie Keyboard Control - A simple approach
Crazyflie Keyboard Control - A simple approach
For those who hate buying an XBox/PS controller/Joystick,for those who wanna just fly the quad right after unboxing (but do not have a recommended input device-like me ) for those who played flight simulator games like Tom Clancy's H.A.W.X on a PC keyboard and for those who wanna feel like flying the quadcopter from your PC keyboard, you've come to the right place. The method I followed to set up such a thing is very simple - involves NO coding, scripting,etc. You just get to fly it off the shelf!!! So lets get started, I'll walk you through...
STEP 1: Download and Install "VJoy". VJoy is a free gamepad simulation software that gives you the freedom to map gamepad control to keyboard buttons, cool huh?
download link: http://www.headsoft.com.au/download/pc/VJoySetup.exe
or follow the instructions at http://www.headsoft.com.au/index.php?category=vjoy
STEP 2: Once done installing VJoy, you can start configuring your custom controls, say for example, the one shown in my screenshot , scrn1 STEP 3: Okay, now for the next step, open the Crazyflie PC Client and go to Input Device > Device and make sure you have selected the appropriate device, as shown in screenshot 2 STEP 4: Configure the device on crazyflie PC client, go to input device > mappings > PS4_mode1_windows. Then go to input device>configure device mapping and configure the device as per instructions from the window. Make sure the correct device and corresponding mapping is selected.
Congratulations, you are now ready to fly the crazyflie via keyboard!!!
STEP 1: Download and Install "VJoy". VJoy is a free gamepad simulation software that gives you the freedom to map gamepad control to keyboard buttons, cool huh?
download link: http://www.headsoft.com.au/download/pc/VJoySetup.exe
or follow the instructions at http://www.headsoft.com.au/index.php?category=vjoy
STEP 2: Once done installing VJoy, you can start configuring your custom controls, say for example, the one shown in my screenshot , scrn1 STEP 3: Okay, now for the next step, open the Crazyflie PC Client and go to Input Device > Device and make sure you have selected the appropriate device, as shown in screenshot 2 STEP 4: Configure the device on crazyflie PC client, go to input device > mappings > PS4_mode1_windows. Then go to input device>configure device mapping and configure the device as per instructions from the window. Make sure the correct device and corresponding mapping is selected.
Congratulations, you are now ready to fly the crazyflie via keyboard!!!
-
- Beginner
- Posts: 18
- Joined: Sat Sep 20, 2014 1:47 am
Re: Crazyflie Keyboard Control - A simple approach
Thank for the info ! Will try it! Love my keyboard
For flying out of the box, you can use the bitcraze iApp
...don't know if it work for cf1 too ? But like a charm for cf2!!!
Chon
For flying out of the box, you can use the bitcraze iApp
...don't know if it work for cf1 too ? But like a charm for cf2!!!
Chon
Re: Crazyflie Keyboard Control - A simple approach
Chon, the app works for cf1 too, which is what i have... But you require usb OTG support on the phone for that...chonchonchon wrote:Thank for the info ! Will try it! Love my keyboard
For flying out of the box, you can use the bitcraze iApp
...don't know if it work for cf1 too ? But like a charm for cf2!!!
Chon
Re: Crazyflie Keyboard Control - A simple approach
Oh, and btw, you can try different mappings too, with incremental control...the mapping described above gives only the extremes, unlike a PS/xbox controller, which is analog... Vjoy also has an open source sdk to do some scripting, here we can implement analog control via keyboard, working on that presently...
Re: Crazyflie Keyboard Control - A simple approach
No love for Linux or OS X though?...
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Re: Crazyflie Keyboard Control - A simple approach
Lots of love for linux, buddy...will have to try this one out toochad wrote:No love for Linux or OS X though?...
http://andersmalmgren.github.io/FreePIE/
Re: Crazyflie Keyboard Control - A simple approach
Nice! That looks interesting.
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Re: Crazyflie Keyboard Control - A simple approach
Is the CF2 even manageable with digital controls?
Re: Crazyflie Keyboard Control - A simple approach
I do not have the CF2, but regardless, digital control is really very tough and a pain in the neck. This was just an initiative to start from a more "primitive" controller, a.k.a., the keyboard. While i have achieved some analog success with the mouse via PPJoy, I have been able to hover the CF, i have also been trying to write a script for flying it off a keyboard or mouse or a combo of both...I'm trying it the python way...so I will post it once I even manage to get reasonable success...Cheers!...dbrgn wrote:Is the CF2 even manageable with digital controls?
-
- Beginner
- Posts: 1
- Joined: Sat Feb 18, 2017 10:36 pm
Re: Crazyflie Keyboard Control - A simple approach
I've opened the vjoy and configured the keys as mentioned. However the PC client could not detect the vjoy. The (Input Device -> Device) itself is disabled. I have tried a lot of things. Can you let me know what am I missing here?