uglyDwarf / linuxtrack

Headtracking for Linux/Mac
MIT License
155 stars 30 forks source link

TrackIR red lights with XPlane11 on MacOS #170

Closed sr7171 closed 4 years ago

sr7171 commented 4 years ago

Hi, I have installed the TrackIR5 drivers (5.4.2) using ltr_gui on my Mac Book Pro 13 inch, early 2015 running Mac OS Catalina. I have TrackIR enabled in the xplane graphics settings. I've also installed the xplane11 plugin (plane 11.50 beta 11) and setup the keyboard to start/stop tracking. I can see the green lights on the TrackIR5 coming on and off when I use the linuxtrack plugin start/stop keys. However, the 4 red lights don't come on. Any pointers on how to debug what's going on appreciated.

Best regards

Steve

sr7171 commented 4 years ago

Linuxtrack version 0.99.18 [Sun 2020-06-28 16:59:55 BST] Starting ltr_gui [Sun 2020-06-28 16:59:55 BST] Preferences read OK! [Sun 2020-06-28 16:59:55 BST] Dumping prefs: [Sun 2020-06-28 16:59:55 BST] [Global] Model = NP TrackClip Prefix = "/private/var/folders/qy/g3g61x7d3y79p7f95gbqxxmh0000gn/T/AppTranslocation/FAB98965-F040-44E6-B5A7-E6219FD21EAF/d/ltr_gui.app/Contents/MacOS" Input = TrackIR 
 
 [Wiimote] Capture-device = Wiimote Capture-device-id = Wiimote Running-indication = 0100 Paused-indication = 0010 
 
 [TrackIR] Capture-device = Tir Capture-device-id = Tir Threshold = 140 Min-blob = 4 Max-blob = 2500 Status-led-brightness = 0 Ir-led-brightness = 7 Status-signals = On 
 
 [NP TrackClip] Model-type = Cap Cap-X = 67 Cap-Y = 54 Cap-Z = 96 Head-Y = 160 Head-Z = 50 Active = no 
 
 [NP TrackClip Pro] Model-type = Clip Clip-Y1 = 40 Clip-Y2 = 110 Clip-Z1 = 30 Clip-Z2 = 50 Head-X = -100 Head-Y = -100 Head-Z = 50 Active = yes 
 
 [Face] Model-type = Face 
 
 [Single Point Reflective] Model-type = SinglePoint Active = no 
 
 [Single LED] Model-type = SinglePoint Active = yes 
 
 [Default] Title = Default Pitch-enabled = Yes Pitch-deadzone = 0.0 Pitch-left-curvature = 0.5 Pitch-right-curvature = 0.5 Pitch-sensitivity = 5.000000 Pitch-left-limit = 80.000000 Pitch-right-limit = 80.000000 Pitch-filter = 0.2 Pitch-inverted = No Yaw-enabled = Yes Yaw-deadzone = 0.0 Yaw-left-curvature = 0.5 Yaw-right-curvature = 0.5 Yaw-sensitivity = 5.000000 Yaw-left-limit = 130.000000 Yaw-right-limit = 130.000000 Yaw-filter = 0.2 Yaw-inverted = No Roll-enabled = Yes Roll-deadzone = 0.0 Roll-left-curvature = 0.5 Roll-right-curvature = 0.5 Roll-sensitivity = 1.500000 Roll-left-limit = 45.000000 Roll-right-limit = 45.000000 Roll-filter = 0.2 Roll-inverted = No Xtranslation-enabled = Yes Xtranslation-deadzone = 0.0 Xtranslation-left-curvature = 0.5 Xtranslation-right-curvature = 0.5 Xtranslation-sensitivity = 5.000000 Xtranslation-left-limit = 300.000000 Xtranslation-right-limit = 300.000000 Xtranslation-filter = 0.2 Xtranslation-inverted = No Ytranslation-enabled = Yes Ytranslation-deadzone = 0.0 Ytranslation-left-curvature = 0.5 Ytranslation-right-curvature = 0.5 Ytranslation-sensitivity = 5.000000 Ytranslation-left-limit = 300.000000 Ytranslation-right-limit = 300.000000 Ytranslation-filter = 0.2 Ytranslation-inverted = No Ztranslation-enabled = Yes Ztranslation-deadzone = 0.0 Ztranslation-left-curvature = 0.5 Ztranslation-right-curvature = 0.5 Ztranslation-sensitivity = 2.000000 Ztranslation-left-limit = 300.000000 Ztranslation-right-limit = 1.000000 Ztranslation-filter = 0.5 Ztranslation-inverted = No 
 
 
 [Sun 2020-06-28 16:59:55 BST] ================================================ [Sun 2020-06-28 16:59:55 BST] Preferences read OK! [Sun 2020-06-28 16:59:55 BST] Opening logfile viewer. [Sun 2020-06-28 16:59:55 BST] Launching wine command: '"wine" "--version"' [Sun 2020-06-28 16:59:55 BST] Process error: Failed To Start [Sun 2020-06-28 16:59:55 BST] Using internal wine; adjusting env variables: [Sun 2020-06-28 16:59:55 BST] PATH='/private/var/folders/qy/g3g61x7d3y79p7f95gbqxxmh0000gn/T/AppTranslocation/B5975B74-52A5-41B7-AD00-B004CF9F2CD2/d/ltr_gui.app/Contents/MacOS/../wine/bin/:/usr/bin:/bin:/usr/sbin:/sbin' [Sun 2020-06-28 16:59:55 BST] WINESERVER='/private/var/folders/qy/g3g61x7d3y79p7f95gbqxxmh0000gn/T/AppTranslocation/B5975B74-52A5-41B7-AD00-B004CF9F2CD2/d/ltr_gui.app/Contents/MacOS/../wine/bin/wineserver' [Sun 2020-06-28 16:59:55 BST] WINELOADER='/private/var/folders/qy/g3g61x7d3y79p7f95gbqxxmh0000gn/T/AppTranslocation/B5975B74-52A5-41B7-AD00-B004CF9F2CD2/d/ltr_gui.app/Contents/MacOS/../wine/bin/wine' [Sun 2020-06-28 16:59:55 BST] WINEDLLPATH='/private/var/folders/qy/g3g61x7d3y79p7f95gbqxxmh0000gn/T/AppTranslocation/B5975B74-52A5-41B7-AD00-B004CF9F2CD2/d/ltr_gui.app/Contents/MacOS/../wine/lib/wine/fakedlls' [Sun 2020-06-28 16:59:55 BST] DYLD_LIBRARY_PATH='/private/var/folders/qy/g3g61x7d3y79p7f95gbqxxmh0000gn/T/AppTranslocation/B5975B74-52A5-41B7-AD00-B004CF9F2CD2/d/ltr_gui.app/Contents/MacOS/../wine/lib/' [Sun 2020-06-28 16:59:55 BST] DYLD_PRINT_ENV='1' [Sun 2020-06-28 16:59:55 BST] DYLD_PRINT_LIBRARIES='1' [Sun 2020-06-28 16:59:55 BST] WINEDEBUG='+file,+seh,+tid,+process,+rundll,+module' [Sun 2020-06-28 16:59:55 BST] Going to create lock '/Users/stephen/.config/linuxtrack/ltr_server.lock' => 15! [Sun 2020-06-28 16:59:55 BST] Lock 15 success! [Sun 2020-06-28 16:59:55 BST] Passing the lock to protect fifo (pid 26059)! [Sun 2020-06-28 16:59:55 BST] Initializing axes for profile 'Default'! [Sun 2020-06-28 16:59:55 BST] Closing axes! [Sun 2020-06-28 16:59:55 BST] Initializing axes for profile 'Default'! [Sun 2020-06-28 16:59:55 BST] Closing axes! [Sun 2020-06-28 16:59:55 BST] Initializing axes for profile 'Default'! [Sun 2020-06-28 16:59:55 BST] Closing axes! [Sun 2020-06-28 16:59:55 BST] Initializing axes for profile 'Default'! [Sun 2020-06-28 16:59:56 BST] Launching wine command: '"wine" "--version"' [Sun 2020-06-28 16:59:56 BST] Process error: Failed To Start [Sun 2020-06-28 16:59:56 BST] Using internal wine; adjusting env variables: [Sun 2020-06-28 16:59:56 BST] PATH='/private/var/folders/qy/g3g61x7d3y79p7f95gbqxxmh0000gn/T/AppTranslocation/B5975B74-52A5-41B7-AD00-B004CF9F2CD2/d/ltr_gui.app/Contents/MacOS/../wine/bin/:/usr/bin:/bin:/usr/sbin:/sbin' [Sun 2020-06-28 16:59:56 BST] WINESERVER='/private/var/folders/qy/g3g61x7d3y79p7f95gbqxxmh0000gn/T/AppTranslocation/B5975B74-52A5-41B7-AD00-B004CF9F2CD2/d/ltr_gui.app/Contents/MacOS/../wine/bin/wineserver' [Sun 2020-06-28 16:59:56 BST] WINELOADER='/private/var/folders/qy/g3g61x7d3y79p7f95gbqxxmh0000gn/T/AppTranslocation/B5975B74-52A5-41B7-AD00-B004CF9F2CD2/d/ltr_gui.app/Contents/MacOS/../wine/bin/wine' [Sun 2020-06-28 16:59:56 BST] WINEDLLPATH='/private/var/folders/qy/g3g61x7d3y79p7f95gbqxxmh0000gn/T/AppTranslocation/B5975B74-52A5-41B7-AD00-B004CF9F2CD2/d/ltr_gui.app/Contents/MacOS/../wine/lib/wine/fakedlls' [Sun 2020-06-28 16:59:56 BST] DYLD_LIBRARY_PATH='/private/var/folders/qy/g3g61x7d3y79p7f95gbqxxmh0000gn/T/AppTranslocation/B5975B74-52A5-41B7-AD00-B004CF9F2CD2/d/ltr_gui.app/Contents/MacOS/../wine/lib/' [Sun 2020-06-28 16:59:56 BST] DYLD_PRINT_ENV='1' [Sun 2020-06-28 16:59:56 BST] DYLD_PRINT_LIBRARIES='1' [Sun 2020-06-28 16:59:56 BST] WINEDEBUG='+file,+seh,+tid,+process,+rundll,+module' [Sun 2020-06-28 16:59:56 BST] Initializing libusb. [Sun 2020-06-28 16:59:56 BST] Libusb initialized successfuly. [Sun 2020-06-28 16:59:56 BST] Libusb debug level set. [Sun 2020-06-28 16:59:56 BST] Requesting device list. [Sun 2020-06-28 16:59:56 BST] Device list received (12 devices). [Sun 2020-06-28 16:59:56 BST] Device is a TrackIR (131D:0158). [Sun 2020-06-28 16:59:56 BST] Opening handle to the device found. [Sun 2020-06-28 16:59:56 BST] Handle opened successfully. [Sun 2020-06-28 16:59:56 BST] Freeing device list. [Sun 2020-06-28 16:59:56 BST] Device list freed. [Sun 2020-06-28 16:59:56 BST] Closing TrackIR. [Sun 2020-06-28 16:59:56 BST] Closing TrackIR handle. [Sun 2020-06-28 16:59:56 BST] Exiting libusb. [Sun 2020-06-28 16:59:56 BST] Libusb exited. 
 [Sun 2020-06-28 17:00:41 BST] Lock 15 success! [Sun 2020-06-28 17:00:41 BST] Socket created! [Sun 2020-06-28 17:00:41 BST] Other master gave up, gui master taking over! [Sun 2020-06-28 17:00:41 BST] Starting as master! [Sun 2020-06-28 17:00:41 BST] Setting up Cap [Sun 2020-06-28 17:00:41 BST] Initializing model! [Sun 2020-06-28 17:00:41 BST] Tracking initialized! [Sun 2020-06-28 17:00:41 BST] Adding fd 32 [Sun 2020-06-28 17:00:41 BST] Device Type: Track IR [Sun 2020-06-28 17:00:41 BST] Changing state to INITIALIZING! [Sun 2020-06-28 17:00:41 BST] Loading library 'libtir' [Sun 2020-06-28 17:00:41 BST] Running! [Sun 2020-06-28 17:00:41 BST] Changing state to INITIALIZING! [Sun 2020-06-28 17:00:41 BST] Initializing the tracker. [Sun 2020-06-28 17:00:41 BST] Lib loaded, prefs read... [Sun 2020-06-28 17:00:41 BST] Initializing libusb. [Sun 2020-06-28 17:00:41 BST] Libusb initialized successfuly. [Sun 2020-06-28 17:00:41 BST] Libusb debug level set. [Sun 2020-06-28 17:00:41 BST] Requesting device list. [Sun 2020-06-28 17:00:41 BST] Device list received (12 devices). [Sun 2020-06-28 17:00:41 BST] Device is a TrackIR (131D:0158). [Sun 2020-06-28 17:00:41 BST] Opening handle to the device found. [Sun 2020-06-28 17:00:41 BST] Handle opened successfully. [Sun 2020-06-28 17:00:41 BST] Freeing device list. [Sun 2020-06-28 17:00:41 BST] Device list freed. [Sun 2020-06-28 17:00:41 BST] Requesting TrackIR configuration. [Sun 2020-06-28 17:00:41 BST] TrackIR configuration received. [Sun 2020-06-28 17:00:41 BST] TrackIR already in requested configuration. [Sun 2020-06-28 17:00:41 BST] Trying to claim TrackIR interface. [Sun 2020-06-28 17:00:41 BST] TrackIR interface claimed. [Sun 2020-06-28 17:00:41 BST] Requesting TrackIR configuration. [Sun 2020-06-28 17:00:41 BST] TrackIR configuration received. [Sun 2020-06-28 17:00:41 BST] Device configuration is OK. [Sun 2020-06-28 17:00:41 BST] Device 5. [Sun 2020-06-28 17:00:41 BST] Turning status LED off (TIR5). [Sun 2020-06-28 17:00:41 BST] Setting IR LED. 
 [Sun 2020-06-28 17:00:42 BST] Flushing FIFO. [Sun 2020-06-28 17:00:42 BST] Turning status LED off (TIR5). 
 [Sun 2020-06-28 17:00:42 BST] Turning status LED off (TIR5). [Sun 2020-06-28 17:00:42 BST] Setting IR LED. [Sun 2020-06-28 17:00:42 BST] Flushing packets... [Sun 2020-06-28 17:00:42 BST] Sending get_conf request. [Sun 2020-06-28 17:00:42 BST] Requesting data... [Sun 2020-06-28 17:00:42 BST] Requesting data... [Sun 2020-06-28 17:00:42 BST] Setting IR LED. [Sun 2020-06-28 17:00:42 BST] Flushing FIFO. [Sun 2020-06-28 17:00:42 BST] Setting exposure. [Sun 2020-06-28 17:00:42 BST] Requesting status. [Sun 2020-06-28 17:00:42 BST] Status packet: 07 20 01 01 57 92 02 [Sun 2020-06-28 17:00:42 BST] Loading firmware '/Users/stephen/.config/linuxtrack//tir_firmware/tir5v2.fw.gz' [Sun 2020-06-28 17:00:42 BST] Size: 36145 Cksum: 5792 
 [Sun 2020-06-28 17:00:42 BST] Firmware uploaded! [Sun 2020-06-28 17:00:42 BST] Flushing FIFO. [Sun 2020-06-28 17:00:42 BST] Requesting status. [Sun 2020-06-28 17:00:42 BST] Status packet: 07 20 01 01 57 92 02 [Sun 2020-06-28 17:00:42 BST] Setting threshold. [Sun 2020-06-28 17:00:42 BST] Setting exposure. [Sun 2020-06-28 17:00:42 BST] Setting IR LED. [Sun 2020-06-28 17:00:42 BST] Setting status LED. [Sun 2020-06-28 17:00:42 BST] Setting status LED. [Sun 2020-06-28 17:00:42 BST] Setting status LED. [Sun 2020-06-28 17:00:42 BST] Setting IR LED. [Sun 2020-06-28 17:00:42 BST] Setting threshold. [Sun 2020-06-28 17:00:42 BST] Setting exposure. [Sun 2020-06-28 17:00:42 BST] Setting status LED. 
 [Sun 2020-06-28 17:00:43 BST] Flushing FIFO. [Sun 2020-06-28 17:00:43 BST] Setting IR LED. [Sun 2020-06-28 17:00:43 BST] Going to start camera. [Sun 2020-06-28 17:00:43 BST] Turning status LED off (TIR5). 
 [Sun 2020-06-28 17:00:43 BST] Problem writing data to TIR@ep 1! -7 - 0 transferred [Sun 2020-06-28 17:00:43 BST] Setting IR LED. 
 [Sun 2020-06-28 17:00:44 BST] Flushing FIFO. [Sun 2020-06-28 17:00:44 BST] Turning status LED off (TIR5). [Sun 2020-06-28 17:00:44 BST] Turning status LED off (TIR5). [Sun 2020-06-28 17:00:44 BST] Setting IR LED. [Sun 2020-06-28 17:00:44 BST] Setting IR LED. 
 [Sun 2020-06-28 17:00:45 BST] Problem writing data to TIR@ep 1! -7 - 0 transferred 
 [Sun 2020-06-28 17:00:45 BST] Setting up Cap [Sun 2020-06-28 17:00:45 BST] Changing state to RUNNING! [Sun 2020-06-28 17:00:45 BST] Setting threshold. 
 [Sun 2020-06-28 17:00:46 BST] Data receive request timed out! 
 [Sun 2020-06-28 17:00:47 BST] Data receive request timed out! 
 [Sun 2020-06-28 17:00:48 BST] Data receive request timed out! 
 [Sun 2020-06-28 17:00:49 BST] Data receive request timed out! 
 [Sun 2020-06-28 17:00:50 BST] Data receive request timed out! 
 [Sun 2020-06-28 17:00:51 BST] Data receive request timed out! 
 [Sun 2020-06-28 17:00:52 BST] Data receive request timed out! 
 [Sun 2020-06-28 17:00:53 BST] Data receive request timed out! 
 [Sun 2020-06-28 17:00:54 BST] Data receive request timed out! 
 [Sun 2020-06-28 17:00:55 BST] Data receive request timed out! [Sun 2020-06-28 17:00:57 BST] Data receive request timed out! [Sun 2020-06-28 17:00:57 BST] Shutting down tracking! [Sun 2020-06-28 17:00:57 BST] Shutting down tracking... [Sun 2020-06-28 17:00:57 BST] Closing! [Sun 2020-06-28 17:00:58 BST] Data receive request timed out! [Sun 2020-06-28 17:00:58 BST] Closing the TIR5 camera. [Sun 2020-06-28 17:00:58 BST] Turning status LED off (TIR5). [Sun 2020-06-28 17:00:58 BST] Setting IR LED. [Sun 2020-06-28 17:00:58 BST] Flushing FIFO. [Sun 2020-06-28 17:00:58 BST] Turning status LED off (TIR5). [Sun 2020-06-28 17:00:59 BST] Turning status LED off (TIR5). [Sun 2020-06-28 17:00:59 BST] Setting IR LED. [Sun 2020-06-28 17:00:59 BST] Setting threshold. [Sun 2020-06-28 17:00:59 BST] Setting exposure. [Sun 2020-06-28 17:00:59 BST] Setting IR LED. [Sun 2020-06-28 17:00:59 BST] Setting status LED. [Sun 2020-06-28 17:00:59 BST] Setting status LED. [Sun 2020-06-28 17:00:59 BST] Closing TrackIR. [Sun 2020-06-28 17:00:59 BST] Releasing TrackIR interface. [Sun 2020-06-28 17:00:59 BST] TrackIR interface released. [Sun 2020-06-28 17:00:59 BST] Closing TrackIR handle. [Sun 2020-06-28 17:00:59 BST] Exiting libusb. [Sun 2020-06-28 17:00:59 BST] Libusb exited. [Sun 2020-06-28 17:00:59 BST] TIR5 camera closed. [Sun 2020-06-28 17:00:59 BST] Changing state to STOPPED! [Sun 2020-06-28 17:00:59 BST] Master closing socket 32 [Sun 2020-06-28 17:00:59 BST] Closing semaphore 15 (pid 26059)! 


sr7171 commented 4 years ago

Packaged logs with LINUXTRACK_DBG=u LINUXTRACK_DBG Packaged Logs.zip

sr7171 commented 4 years ago

USB Wireshark with ltr_gui running. Everything disconnected from the Mac except the TrackIR. linuxtrack USB wireshark capture 28Jun202 1747.pcapng.zip

sr7171 commented 4 years ago

USB wireshark with the TrackIR connected to a windows VM on the mac. windowsVM USB wireshark capture 28Jun202 1756.pcapng.zip

sr7171 commented 4 years ago

I will qualify with you that I haven't written software in years...

It looks there is something happening around turning the camera on (14 00) and turning on the IR LED (19 09 10 07 01) in

Before the log message "going to start camera" it successfully sends 19 09 10 07 01 and then 14 00 then later it sends 14 00 but fails to send 19 09 10 07 01 on two occasions

What turns the IR on? 19 09 10 07 01 or 19 09 10 00 00 or 10 00 80 or 10 80 80

Sun 2020-06-28 17:27:24 BST] Setting IR LED. [Sun 2020-06-28 17:27:24 BST] libusb_dump out 19 09 10 07 01 [Sun 2020-06-28 17:27:24 BST] libusb_dump out 14 00 [Sun 2020-06-28 17:27:24 BST] Going to start camera. [Sun 2020-06-28 17:27:24 BST] Turning status LED off (TIR5). [Sun 2020-06-28 17:27:24 BST] libusb_dump out 19 04 10 00 00 [Sun 2020-06-28 17:27:24 BST] Problem writing data to TIR@ep 1! -7 - 0 transferred [Sun 2020-06-28 17:27:24 BST] Setting IR LED. [Sun 2020-06-28 17:27:24 BST] libusb_dump out 19 09 10 00 00 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 14 01 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 14 01 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 14 01 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 14 01 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 14 01 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 12 01 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 13 01 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 14 01 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 14 01 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 14 01 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 14 01 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 14 01 [Sun 2020-06-28 17:27:25 BST] Flushing FIFO. [Sun 2020-06-28 17:27:25 BST] libusb_dump out 12 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 13 [Sun 2020-06-28 17:27:25 BST] Turning status LED off (TIR5). [Sun 2020-06-28 17:27:25 BST] libusb_dump out 19 04 10 00 00 [Sun 2020-06-28 17:27:25 BST] Turning status LED off (TIR5). [Sun 2020-06-28 17:27:25 BST] libusb_dump out 19 04 10 00 00 [Sun 2020-06-28 17:27:25 BST] Setting IR LED. [Sun 2020-06-28 17:27:25 BST] libusb_dump out 19 09 10 00 00 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 10 00 80 [Sun 2020-06-28 17:27:25 BST] libusb_dump out 14 00 [Sun 2020-06-28 17:27:25 BST] Setting IR LED. [Sun 2020-06-28 17:27:25 BST] libusb_dump out 19 09 10 07 01 [Sun 2020-06-28 17:27:26 BST] Problem writing data to TIR@ep 1! -7 - 0 transferred [Sun 2020-06-28 17:27:26 BST] libusb_dump out 19 04 10 00 22 [Sun 2020-06-28 17:27:26 BST] Setting up Cap [Sun 2020-06-28 17:27:26 BST] Changing state to RUNNING!

Ideally I'd like to experiment but compiling the software following your directions is challenging because my mac is on Catalina and there are a lot of errors. https://github.com/uglyDwarf/linuxtrack/wiki/New-Build-OSX. For example, I had to install a newer version of qt and xcode. Unfortunately I dont have another mac with an old version of the operating system. Has anyone succeeded in building the software recently on Catalina?

Best regards

Steve

sr7171 commented 4 years ago

I've managed to hack a workaround.

I added flush_fifo between turning video on and setting LED in tir_hw.c

static bool start_camera_tir5() { stop_camera_tir(); ltr_int_send_data(out_ep, Video_on,sizeof(Video_on)); flush_fifo_tir(); if(ir_on){ control_ir_led_tir(true); }else{ control_ir_led_tir(false); } if(ltr_int_tir_get_status_indication()) set_status_led_tir5(true); return true; }

The QT GUI + wecbam facetracking + wine is too difficult to compile on MacOS Catalina (no webkit on QT in the versions I could install) so I compiled a workaround 1) I copied the TIR program files from a windows installation and used ltr_gui, "extract from unpacked" to get the firmware drivers. ltr_gui puts them in $HOME/.config/linuxtrack/XXXX_XXXXXX where X is a number.

If you want to play with settings you need to manually edit them in $HOME/.config/linuxtrack/mactrackir. Not figured this out yet. I need to make the tracker less sensitive.

trackir_master_server.c

include

include <sys/types.h>

include

include

include

include "ltr_srv_comm.h"

include "ltr_srv_master.h"

int main(int argc, char *argv[]) { (void) argc; (void) argv; printf("entering trackir_master_server.c pid = %d\n", getpid()); ltr_int_master(true); return 0; }