Keyboard control for AR.drone help

Hi guys, I had been trying to modify the AR.drone LabView toolkit given in order to add a keyboard interface. I am a newbie. I tried a lot of ways but I still can't control the AR.drone by my keyboard. Can anyone help me with it?

I started doing a certain part of the program but my keyboard parameters program can't seem to toggle the 3 important button ( takeoff , hover and stop) after connect to the the control of the drone program. You may want to see the VI
Attachments:
Keyboard control.zip ‏562 KB

Similar Messages

  • How 2 implement keyboard controls for 2 players simultaneusly in java game?

    I ' m making this fighting game . 2 players can fight at a time. I got my 2 characters on the screen at the same time. The 1st player should be controlled with Arrow keys and number key pad.
    The 2nd player should be controlled with Z for left C for RIGHT , S for UP( jump), X for duck. and then use BNM, GHJ and TYU to do the same as the number keys for the first player
    When i tried this , it worked if i performed moves from player 1 , then trie d player 2,, but i noticed when i pushed buttons at the same time ( i pushed one key from player 1 's side of the keyboard and one key from player 2's side) it did't work because no move was executed. And i know it's because i'm pushing 2 keys at once . so one character sees that i'm pushing 2 keys, but he doesn't know what to do cause i didn't make a case of pushing 2 keys that would move him and another character.
    So i have this in keyDown()
    //THIS IS FOR 1 PLAYER MODE : you against enemy
    switch( key){
    case Even.UP:
    if( player1 is michaelCharacter ){
    michaelCharacter.jump()
    else if( player1 is johnsonCharacter){
    johnsonCharacter.jump();
    break;
    etcc... all player 1 keys in this way, acconrding to which character he chose to play with
    //then i have this swich that supposedly is used if there is a second player
    if( gameType = 2Player mode ){
    switch( key ){
    case 's':
    if( player2 = michaelChacter)
    michaelCharacter.jump():
    if( player2 = johnsonCharacter)
    johnsoncharacter.jump();
    break;
    //etc
    So that works if each character does his move But there is no overlap of moves, that is you don't have player1 and player2 executing a move at the same time.
    well, how would i do it? Is it possible ?

    Hi,
    It's bit tricky to do check keyboard simultaneously...
    you need to check KeyPressed() and KeyReleased(), and do a "log key-event history" to find out what keys are still in pressed.
    alternatively,
    If you don't mind, you can use Fly game library...
    initialisation part:
    // initialisation & make game screen resolution to 800x600
    Game g = new Game();
    g.init(800,600,false);
    ...and then on your key trapping logic, just do a standard logic. I'm surely it will works:
    if (g.getKeyboard().isKeyPressed(KeyEvent.VK_UP)) {
    if (g.getKeyboard().isKeyPressed(KeyEvent.VK_DOWN)) {
    }the library can be downloaded here:
    [Fly Game Engine|http://fly.engine.googlepages.com]
    Just follow the tutorial / download example for more info....
    good luck

  • Keyboard control for caps lock?

    Is there a way to disable the caps lock key on my powerbook? Many thanks for your advice.
    Grant

    Jason, Many thanks for your reply, I have opened System Preferences and clicked on the Keyboard tab, but in the area below there is no place that says "Modifier Keys", What is there is the following:
    Line 1, Key Repeat Rate, Delay until repeat
    Line 2, Type here to test settings
    Line 3, A check box followed by "Use the F1-F12 keys for custom actions....
    Line 5, A check box followed by -Illuminate keyboard in low light conditions
    Line 6, Turn Off when computer is not used for, and a sliding scale before that.
    Line 7 A small circle with a question mark.
    I am sorry for my obtuseness but is there something I have missed?
    I appreciate the help.
    Grant
    Hello,
    Yes, there is a way to disable the caps lock key on
    your PowerBook G4. Follow the quick and easy steps
    below:
    1) Open System Preferences.
    2) Select Keyboard & Mouse and click on the Keyboard
    tab.
    3) Click on Modifier Keys.
    4) From the Caps Lock list at the top, select No
    Action.
    Now, the caps lock key on your PowerBook G4 is
    disabled. To enable it, repeat steps 1-3 and select
    Caps Lock instead of No Action.
    -Jason

  • Implementing keyboard control on a window

    Hi, I'm currently trying to implement keyboard control for a tetris game I'm attempting to make, but I've done it a rather dodgy way. I've implemented it on a Jpanel instead.
    What I want to do is, implement the keyboard control on the window, however I've been unable to do so. I'm new to java (this is quite an ambitious project - but I'm trying to learn) so any help would be really appreciated.
    This is the code for constructing the window with the Panels:
    please note: I have omitted the import statements.
    public class MainWindow extends JFrame
        public MainWindow()
            setTitle("Tetris!");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container contentPane;
            contentPane = this.getContentPane();
            contentPane.setLayout(new BorderLayout());
            Game game;
            game = new Game(10, 20);
            GameView gameView = new GameView(game);
            contentPane.add(gameView, BorderLayout.CENTER);
            InfoPanel infoPanel = new InfoPanel(game);
            contentPane.add(infoPanel, BorderLayout.EAST);
            KeyboardControl keyboardControl = new KeyboardControl(game);
            contentPane.add(keyboardControl, BorderLayout.SOUTH);
            this.pack();
            game.start();
    }This is the code for the keyboard control:
    public class KeyboardControl extends JPanel implements KeyListener
        private Game game;
        public KeyboardControl(Game game)
            this.game = game;
            setLayout(new GridLayout(0,-1));
            setFocusable(true);
            addKeyListener(this);
        public void keyPressed(KeyEvent event)
               int key = event.getKeyCode();
                if (key == event.VK_LEFT)
                    // Move the block left
                    game.moveLeft();
                    else if (key == event.VK_RIGHT)
                        // Move the block right
                        game.moveRight();
                        else if (key == event.VK_UP)
                            // Rotate the block
                            game.rotate();
                            else if (key == event.VK_DOWN)
                                // Drop the block
                                game.drop();
        public void keyReleased(KeyEvent event)
        public void keyTyped(KeyEvent event)
    }Can anyone provide any hints and sites to look at? I've been through the java tutorials, and the above is what I have achieved.

    Your implementation of the keyboard control (or listener) looks correct.
    To change it to listen to keyword on the window, would require only a
    small change.. See below code.
    public class MainWindow extends JFrame implements KeyListener
        public MainWindow()
            setTitle("Tetris!");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            Container contentPane;
            contentPane = this.getContentPane();
            contentPane.setLayout(new BorderLayout());
            Game game;
            game = new Game(10, 20);
            GameView gameView = new GameView(game);
            contentPane.add(gameView, BorderLayout.CENTER);
            InfoPanel infoPanel = new InfoPanel(game);
            contentPane.add(infoPanel, BorderLayout.EAST);
           addKeyListener(this);      
            //KeyboardControl keyboardControl = new KeyboardControl(game);
            //contentPane.add(keyboardControl, BorderLayout.SOUTH);
            this.pack();
            game.start();
       public void keyPressed(KeyEvent event)
               int key = event.getKeyCode();
                if (key == event.VK_LEFT)
                    // Move the block left
                    game.moveLeft();
                    else if (key == event.VK_RIGHT)
                        // Move the block right
                        game.moveRight();
                        else if (key == event.VK_UP)
                            // Rotate the block
                            game.rotate();
                            else if (key == event.VK_DOWN)
                                // Drop the block
                                game.drop();
        public void keyReleased(KeyEvent event)
        public void keyTyped(KeyEvent event)
    }

  • Changing DVD player keyboard controls

    Anyone know if it's possible to change the default keyboard controls for the DVD player? I wanted to change the scan/shuttle controls to J,K,L instead of Command-Arrow. Anyone know if this is possible? I'll also post it to the suggestion forum as well. It would be useful for those of us who are used to working in Final Cut Studio and other video programs.
    Jonathan

    It sounds to me like the problem is stemming from the energy savings settings on the mac. By default all iMacs are configured to go to sleep after 10 minutes of inactivity. "Inactivity" is usually defined by the Mac OS as a lack of user input, i.e. through the mouse or keyboard. When watching a DVD you are most likely not fulfilling these user input requirements and the computer is attempting to enter a energy savings mode (sleep mode) while your DVD is playing. The Mac OS should be aware that you are actually using your computer and should not become unresponsive so this sounds like a bug that Apple needs to fix.
    My solution is twofold
    1st: make sure you are using the most current version of OS X by running software update (just incase Apple did fix this bug)
    2nd: Adjust the iMac's "sleep" settings by opening System Preferences and selecting the Energy Saver button. Drag the sliders for system and display sleep to the right when you plan to watch a DVD and return them to normal when finished with your DVD (or your mac will always stay on)
    Hopefully this works for you.
    Thom
    - One extra point: if this problem persists try pressing but not holding the power button on the iMac. This should "wake up" the mac from its perpetual deep sleep. I'm not sure, but perhaps you have wireless keyboard, mouse etc. which may be ignored when the iMac is in a low power or sleep mode.

  • Disabled keyboard controls

    It seems that when I copy the frame number from the Quicktime Player to paste into a text document, the keyboard controls for Quicktime Player are disabled. The Space Bar no longer makes the movie play and stop, the right and left arrows no longer make it step forward or backward. Clicking on the control buttons with the cursor still works, but I have to restart Quicktime Player to get the keyboard controls to work again. Has anyone else had this problem and is there a cure?

    Insert a headphone plug into the headphone port and wiggle it around. Repeat as needed until you succeed in unsticking the digital-analog switch inside the port and the red light in there goes off. This sticking is a common problem. If you can't unstick it yourself, take the machine to an Apple store or AASP for repair.
    When optical digital audio-out is selected, the volume controls on the keyboard are inactive. Volume is controlled by the device that the signal is being sent to.

  • Keyboard Shortcut for Volume Control

    Dear all,
    Is there a way to increase or decrease the volume using a keyboard shortcut?? Any help here will be much appreciated.

    Use the side edge volume controls.
    There's no keyboard controls that I know of, other than the # key might place your device on the Silent profile (or the top edge MUTE key )
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Remapping PC Keyboard keys for volume control

    I got an XArmor keyboard because I love mechanical keyswitches. Works great with my Mac.
    However, I do miss having volume control.
    How can I remap keys like say Option->Apple->+ to be the increase volume key?
    The +, -, and enter keys on the numeric keypad would be great for volume control.
    The only software I found so far for doing this was very clumsy and unreliable: Sparks.

    Use the side edge volume controls.
    There's no keyboard controls that I know of, other than the # key might place your device on the Silent profile (or the top edge MUTE key )
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • The activex control for flash player could not be registered.  Please help!

    Can't install flash player.  Keep getting activex control for flash player could not be registered.  I have tried all of the solutions provided on this forum.  Running windows 7 32-bit running IE8.
    Please help.

    Hi, Did you use the Administrator Account? If you received that message it is usually a Permissions Issue.
    We have had several reports this past week of a Virus(AntiVirus8 or AV8) that can set a Kill-bit on the very Registry Key that FP uses for that ActiveX Control.
    You may want to look and see if this is perhaps the problem. This needs to be ruled out first before we proceed, because if that key has the Kill-bit, then it wouldn't matter what you do.
    http://forums.adobe.com/thread/782435?tstart=0
    Thanks,
    eidnolb

  • I have a state space model of a complex system. can anyone help me for implementi​ng MPC and e-MPC control for the same?????

    Hi everyone. I am new to the forums, so let me be as mprecise as possible. i know the basic functionalities of Labview with MPC block etc. However, i dont know how to go ahead with implementing MPC control for a system whose state space model i possess. can anyone help me out?? the problem is that i dont even know the approach or the starting point..

    This happens if you remove a program manually, but still have the registry keys to load files from this program.<br />
    You can use the MSConfig program or the Autoruns utility to see which software and services are getting started.
    *http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx
    You can use registry editor and do a search (Ctrl+D) for imesh to see if you can locate the registry key(s) that launches this program on a reboot.
    Try to ask advice at a Windows oriented forum if you can't fix this.
    * http://www.bleepingcomputer.com/forums/ - BleepingComputer.com - Computer Help Forums
    * http://windowssecrets.com/forums/ Windows Secrets Lounge

  • Keyboard shortcut for Control+F2, F, Enter

    Hello,
    I am trying to create a keyboard shortcut that would be available to all Applications deliveres the same result as these keystrokes:
    1. Control + F2 (move focus to menu bar)
    2. F (moves focus to the File menu bar menu)
    3. Enter or down arrow (Displays the File menu)
    WHat I am looking to do is create the Windows equivalent of alt+F (displays the contents of the File menu)
    I have created a System Preferences Keyboard Shortcut for All Applications that has "File" as the description and ^F has the Shortcut...this doesn't work. Is there a way to assign a shortcut to display the menu bar File menu in its open state?

    ReidRik_Von
    Here's one approach to try...
    1) Open System Preferences > Universal Access and make sure "Enable access for assistive devices" is checked.
    2) Highlight and copy the block of code below and paste it into your AppleScript Script Editor (located inside your Applications > AppleScript folder):
    *tell application "System Events"*
    *keystroke tab using command down*
    *set theApp to name of (first process whose frontmost is true)*
    *tell process theApp*
    *click menu bar item "File" of menu bar 1*
    *end tell*
    *end tell*
    Choose Save As from the Script Editor's File menu, File Format: application, leaving the Options unchecked. Give the script application a name (Display File Menu, e.g.), and press Save.
    3) To assign a keyboard shortcut, you might consider downloading and installing the excellent Spark program.
    From Spark's File menu, set up a New Hot Key to launch an Application, in this case the application being your newly created AppleScript application. When the new System HotKey sheet drops down, hit the Choose button and navigate to the location where your new AppleScript application was saved. Select it and press Open. Click inside the editable Shortcut field to make it active, and on your keyboard keystroke Option (alt), plus the letter "f." Then press Create.
    Start the Spark Daemon by selecting it from the File menu, or by pressing the Stark Spark Daemon button on the Spark panel itself, and then quit Spark altogether. The Spark Daemon and your enabled keyboard shortcut will run as a hidden process, using a minimal amount of RAM.
    It worked for me...
    Good luck!
    Regards, Andrew99

  • I have an ipad3 and wireless keyboard but for the life on me can not type a pound (GBP) symbol - can anyone help?

    I have an ipad3 and wireless keyboard but for the life on me can not type a pound (GBP) symbol - can anyone help?

    I would think you'd have to change the language to British English to get the pound sign. THat or turn off your wireless keyboard and get the pound sign from the on screen keyboard, then turn your wireless board back on.

  • I updated to Yosemite, now my laptop keyboard does not work in MS Word for Mac. Help!

    I updated to Yosemite, now my laptop keyboard does not work in MS Word for Mac. Help! Any suggestions for fixing this?

    Did you ever get a solution to your problem? Because I am having the same problem. I was actually in the middle of using Word when the keyboard stopped working. But it works in other apps, including in Excel.
    Thing is that my laptop just got back from Apple for repairs and they replaced everything but the display - including the hard drive.
    So not only do I have plenty of hard drive space, but it should be virus and error free otherwise.
    I have only installed a few programs and redownloaded some of my files from places like Dropbox, but otherwise is essentially a new system.
    Oh - and it came with Yosemite, so I did not upgrade to Yosemite and still Word doesn't work.
    I've always had trouble getting Word to play nice with my Mac but that was also with the old, full hard drive.
    This is a fresh install. And since I lost all my files, I only had like 1 old file I have downloaded from email and accessed and was in the process of
    creating a new file when it crashed. I got no error, the keyboard just stopped working (to type). I also cannot even get Word > Preferences to even open,
    so it is completely unresponsive.
    I did a Google search and under the Microsoft communities two suggestions to that person were that there may be multiple copies installed -
    I have only the one - and that one is in the wrong place - again, I only have the one and it installed to the Hard drive (visible in Launchpad / Apps).
    Another suggestion was that there was some problem with the updates. I ran updates and they installed fine. That helper suggested that the user
    may have had different updates that worked for the other Office apps (Excel, PPT etc.) but not Word and that was at least part, if not all of his problem,
    but all my Office apps show the same update version 12.3.6, so that cannot be the issue with me.
    I've not yet tried uninstalling and reinstalling, but as I got no errors on the original install or updates, I'm not sure if that would fix it.
    I've found that Mac just doesn't play nice with some programs at all.
    And even though I have a factory installed version of Yosemite on a new, fresh hard drive, even when I booted up, my iPhoto app (which is empty) crashed. I am not sure if my iPhone or iPad was charging at the time, but I don't think so. iPhoto that I still have not even used has crashed several more times since, most notably when plugging in my iPhone / iPad to charge, namely when I declined to upload photos (by default) to DropBox. That may not be related at all, but thus far seems the only other problem I have encountered until this Word problem.
    I'm on a MacBook Pro, Sept. 2009, running OS X Yosemite 10.10.1 factory installed from Apple repairs running Office: 2008 for Mac (Home and Student edition).
    Please advise if you found a resolution and what it was.
    Thanks

  • Keyboard shortcut for filling layer with color are opposite on my PS CS6 OSX install, Help?

    Hello all,
    I'm a bit of a noob, and following a tutorial….and found something strange and wonder if you might help me figure what's happening.
    I have Photoshop Extended CS6 on a macbook pro (late 2011).
    I'm running OSX v 10.7.5
    I'm following along and the instructor added a new layer. I did this.
    He then filled the layer with white which is his background color (he has black foreground, white background). I have the same fore/background colors.
    Now, I thought on mac that to fill with foreground color you hit Apple+Delete  and to fill with background you hit Option+Delete
    It is doing the exact OPPOSITE for me. I hit Apple+Delete (or even backspace)  and it fills with my background color which is white
    If I hit Option+Delete (or backspace) it fills with my foreground color.
    I've tried looking in the Edit Keyboard shortcuts area…but I don't see these settings anywhere.
    I do have an external keyboard  hooked to my mac. It is a 3rd party one, but seems to work in ever other way normally.
    Keyboard here is:  http://pckeyboard.com/page/UKBD/UB40P4A
    Any suggestions why my keyboard shortcut for filling a layer with color might be reversed?
    Thanks in advance,
    CC

    eartho wrote:
    option-delete is, and always has been, fill with foreground.
    a 1 second google search would have informed you of this.
    Thanks for the reply.
    I did do a Google and I got this:
    http://blog.coghillcartooning.com/84/tip-keyboard-shortcut-to-fill-a-photoshop-layer-or-se lection-with-the-background-or-foreground-color/
    And from that I got the option-delete was background, and apple-delete was foreground.
    Hence my confusion...
    Thanks for the reply, I guess I should check 2-3 sites each time I google for keyboard shortcuts for PS.
    CC

  • I purchased a new Apple Keyboard and now the controls for the top row (the f1,f2, f3, etc...) will not function properly.

      I cannot use expose, itunes controls, or anything.   When I hit the controls for itunes, it activates either expose or the dashboard or something else.  I can deactivate this in system settings under the keyboard controls, and I can even rebind the keys in there, however there seems to be no way for me to get my audio controls to work.  How do I get skip, play/pause, mute, and volume controls to work again?  I can't find anywhere I can go to bind the f-whatever keys to those functions again.  This is very frustrating as I constantly use these audio controls.

    I guess you have been to System Pres -> Keyboard? Use this to see if it changes:

Maybe you are looking for