1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-14 21:23:52 +01:00
Commit Graph

54 Commits

Author SHA1 Message Date
zedamota
5bc1a10774 Fixes the "halt" and "rescue" problems 2011-11-28 12:12:26 +00:00
zedamota
27de9fcb08 Some tweaks to detection and connection timings. Should fix some issues with "halt". 2011-11-26 00:06:45 +00:00
Edouard Lafargue
6514ea5262 Finally, a fix for the Mac UAVTalk issues: it was all caused by a wrong RunLoop pointer reference
because of multithreading.
2011-10-11 00:10:27 +02:00
Edouard Lafargue
de8478718c Attempt to make USB faster on Mac. Breaks the Firmware upload system!!! 2011-10-05 00:38:56 +02:00
Edouard Lafargue
822cbfbc81 Fix MacOS halt issues by using the USBMonitor to detect device re-insertion:wq: 2011-09-25 15:28:08 +02:00
Peter Gunnarsson
76ee2c060c OP-520 Change $$qtLibraryTarget to $$qtLibraryName 2011-08-04 15:17:08 +02:00
zedamota
fc7e7df863 OP-512 Remove some qDebug's 2011-05-31 15:41:05 +01:00
zedamota
1ffc0e3d56 Ground/OP-512- Autoconnect option, configured trough the options menu. Default is ON. 2011-05-31 15:29:53 +01:00
edouard
ae32af82b1 Bugfix: swapped ProductID in the USB constants!!
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3113 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-31 20:16:40 +00:00
zedamota
6bcacb1630 OP356/GCS - Makes the dropbox show devices "friendly name". Type of connection and previous serial number accessible via tooltip.
Kind of hacky, we should refractor connectionManager but that can wait for after V1.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3103 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-29 18:25:24 +00:00
peabody124
cdb521ac4a OP-328: Use removal callback when device unplugged and also added mutexs to
protect the list of devices from race conditions.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3089 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-28 15:39:35 +00:00
edouard
1ef9eceac5 Lower amount of debug output in Linux USB Monitor.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3079 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-26 11:57:16 +00:00
edouard
9d0ce95b37 Attempt to fix GCS crashes on USB disconnect: please confirm on other operating systems it is still working fine in all situations.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3066 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-25 10:59:24 +00:00
peabody124
593ccfad7b OP-334 USB HID now working again on mac
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3060 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-22 11:50:26 +00:00
edouard
11f7766ab4 Raw HID plugin: improve initialization in case another plugin wants to use the USBMonitor.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3049 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-20 15:55:02 +00:00
edouard
afb7aaf374 OP-334 : reverted opening method in RawHID plugin, as the new pjrc_rawhid class does not play nice with the USBMonitor system in case several devices with the same PID/VID are present on the system (such as two PipX for example)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3031 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-13 13:03:11 +00:00
zedamota
e1eaf4d132 OP GCS/HID - Now found the true problem, I just need to find an hungry French monkey now.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3024 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-11 18:52:44 +00:00
zedamota
162deda2ba OP GCS/HID - Fixes a problem created with the conversion of the monitor class to singleton. I don't quite understand the problem so this is just a quick fix. Also changed PipXtreme gadget to use new PID.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3023 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-11 18:42:32 +00:00
edouard
cb95edaedc Upate RawHID plugin to cope with the new PID/VIDs
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3021 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-09 18:55:06 +00:00
edouard
51a8a2d525 OP-334: Make the USBMonitor a singleton and export its symbols in the RawHID plugin, so that other plugins can use its instance(). Also implement a way
to ask for devices in bootloader or running mode.



git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3012 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-08 23:59:29 +00:00
edouard
6dcb9b2dcc use constants in the rawhid plugin instead of hardcoded VID
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3004 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 22:16:50 +00:00
pip
69b930899c Removed un-needed signals.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3002 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 22:06:57 +00:00
edouard
18a39c964e Corrected several typos in the device detection code, improved Linux detection (more efficient).
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3000 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 21:50:13 +00:00
edouard
c1546d818f OP-328 Stub for MacOS support of USB Monitor.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2999 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-07 20:38:34 +00:00
edouard
61c8ea9185 OP-334 Now fill the bcdDevice and other fields (except HID page info) on Linux too.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2994 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-06 22:57:34 +00:00
zedamota
0eb0f4365a OP GCS/HID - just added the Usage field to the USBPortInfo struct.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2977 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-05 15:58:17 +00:00
sambas
8fb82584b1 removed some redefined warnings in windows
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2976 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-05 13:51:29 +00:00
zedamota
ea5d4367b4 OP GCS/HID - function to filter based on VID/PID
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2965 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-04 20:49:18 +00:00
zedamota
492152d506 OP GCS/HID - 3rd try, sorry guys
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2963 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-04 19:26:11 +00:00
edouard
f2fc9b03d4 OP-334 Better exit code for the RawHID plugin (termintes usb monitor)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2962 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-04 09:59:43 +00:00
zedamota
3e52d08b2b OP GCS/HID - BIG fix
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2959 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-04 02:17:46 +00:00
edouard
e4535ed575 OP-334 OP-332 Linux usb monitor working fine now, and rawhidplugin.cpp updated to use this new mechanism, no more polling thread opening the device every second!
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2957 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 21:44:59 +00:00
zedamota
623bdb6298 OP GCS/HID - small fix
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2956 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 21:14:56 +00:00
zedamota
18eef2f532 OP GCS/HID - Moved notifications to a new class
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2955 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 21:03:24 +00:00
edouard
086f78b6b8 OP-334 Progress on USB Monitor, compatible with both Win32 and Linux
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2954 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 21:00:37 +00:00
edouard
cd3168d123 OP-334 Further work on USB Monitor, incl. Win32 stub.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2952 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 16:58:48 +00:00
edouard
1c89211df1 ... sorry
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2950 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 13:43:45 +00:00
edouard
c01329810a OP-334 Linux start of implementation and Windows stub to enable compilation.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2949 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 13:41:13 +00:00
edouard
28d4bbbcfb OP-332 Linux work in progress implementation (not compiled right now)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2948 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 11:37:09 +00:00
edouard
bce469c184 OP-334 header file for usb monitor object, work in progress.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2947 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-03-03 08:46:56 +00:00
zedamota
53e18382b3 OP GCS/HID - Added functions to allow already connected devices to trigger the signals.
For this to work, signals have to be subscribed before calling "setUpNotifications()".

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2921 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-28 21:01:02 +00:00
pip
6e12a2f04c Fixed linux compile problem.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2917 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-28 10:15:56 +00:00
zedamota
b8a5249246 OP GCS - sorry made a mess dealing with conflicts
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2916 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-28 01:37:25 +00:00
zedamota
0c2a563c34 OP GCS - created USB connect/disconnect signals for windows using the system API.
Need to call setUpNotifications first!!!

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2915 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-28 01:01:57 +00:00
pip
a2cf1c4673 Now able (hopefully) to unplug USB device from PC whilst the GCS is still connected to it via USB .. in WINDOWS ONLY.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2913 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-28 00:34:31 +00:00
pip
011abe3117 Added deviceUnplugged emitted signal in windows version.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2912 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-27 23:14:04 +00:00
pip
ed4aefbb95 Removed unneeded mutex in the enumeration thread.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2911 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-27 21:15:32 +00:00
pip
d38c44f529 Cleaned up and made the pjrc modules purely C++ - they were a mix of C++ and static C functions and data :( ... although NOT altered the MAC code - someone who knows MAC code needs to do that.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2906 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-27 17:07:41 +00:00
edouard
b4cacbcf76 Sorry, had to change the connection detection, it makes the Linux library crash immediately...
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2892 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-26 14:53:06 +00:00
pip
770c623f34 Removed TestThread stuff
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2889 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-02-26 13:35:50 +00:00