Tuesday, May 7, 2013

Flying on OS X!

Finally got my new MacBook Pro set up (by following what I had done previously), and can now fly on OS X!  The one thing I was missing was libusb, which I installed with 'brew install libusb'.

The radio found the Crazyflie, and flying is very similar to how it works under Linux.  The UI has quite a bit more lag, but most of my attention is on the Crazyflie anyway.... ;)

2 comments:

  1. I'm running into the following issue when running the UI. Crazyradio seems fine when tested directly from interactive python, so I suspect this UI problem is preventing application startup from running to completion. Any ideas, please? I'm completely new to python so investigation as to how to debug (i.e. what menu item causing the trouble) is going to take some time, thought I'd ask your good self in the mean time!

    2013-05-08 16:53:04.135 Python[642:f07] _createMenuRef called with existing principal MenuRef already associated with menu
    2013-05-08 16:53:04.137 Python[642:f07] (
    0 CoreFoundation 0x00007fff8ff7fb06 __exceptionPreprocess + 198
    1 libobjc.A.dylib 0x00007fff93b8f3f0 objc_exception_throw + 43
    2 CoreFoundation 0x00007fff8ff7f8dc +[NSException raise:format:] + 204
    3 AppKit 0x00007fff8a6e3dfc -[NSCarbonMenuImpl _createMenuRef] + 62
    4 AppKit 0x00007fff8a6e374b -[NSCarbonMenuImpl _instantiateCarbonMenu] + 143
    5 AppKit 0x00007fff8a6e2693 -[NSApplication finishLaunching] + 778
    6 AppKit 0x00007fff8a6e204a -[NSApplication run] + 124
    7 QtGui 0x0000000107969463 _ZN19QEventDispatcherMac13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 365
    8 QtCore 0x0000000106db521d _ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE + 79
    9 QtCore 0x0000000106db537b _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 341
    10 QtCore 0x0000000106db7dbc _ZN16QCoreApplication4execEv + 188
    11 QtGui.so 0x0000000107357dd1 meth_QApplication_exec_ + 81
    12 Python 0x0000000105d1081c PyEval_EvalFrameEx + 7873
    13 Python 0x0000000105d14bbf fast_function + 182
    14 Python 0x0000000105d11a29 PyEval_EvalFrameEx + 12494
    15 Python 0x0000000105d0e831 PyEval_EvalCodeEx + 1638
    16 Python 0x0000000105d0e1c5 PyEval_EvalCode + 54
    17 Python 0x0000000105d2cf98 run_mod + 53
    18 Python 0x0000000105d2d03f PyRun_FileExFlags + 137
    19 Python 0x0000000105d2cb8d PyRun_SimpleFileExFlags + 718
    20 Python 0x0000000105d3d5e7 Py_Main + 3039
    21 libdyld.dylib 0x00007fff89ecf7e1 start + 0
    22 ??? 0x0000000000000002 0x0 + 2
    )

    ReplyDelete
  2. I get an identical error but it doesn't seem to prevent me from successfully launching the ui. I am doing so via terminal after CD-ing into the client folder with ./bin/cfclient

    ReplyDelete