|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
My team has an idea for position tracking which requires the use of a USB port. Last year this obviously wasn't possible (without A LOT of workarounds and ordering parts from overseas). This year we were excited to see the roboRIO sporting 2 host USB ports. I'm the lead programmer and have been tasked with programming this system.
How would I go about getting data off of the USB? I found the kUSB value in the Port class that is used to construct a SerialPort object but I haven't had any luck getting data from the port through this method. (although I haven't really had much time to play with it yet) Any help would be much appreciated and I thank you for the time you spent reading this. |
|
#2
|
||||||
|
||||||
|
Re: Explanantion needed on how to get USB data from the roboRIO
Does the device show up in the roboRIO webdashboard? If so, what is it's address? It should be INSTR::ASLR3 to work with the kUSB setting.
|
|
#3
|
|||
|
|||
|
Re: Explanantion needed on how to get USB data from the roboRIO
Quote:
Would it change anything if this device registered as a generic HID device? |
|
#4
|
||||||
|
||||||
|
Re: Explanantion needed on how to get USB data from the roboRIO
Quote:
While it should be possible to use a generic HID device through linux interfaces, WPILib doesn't provide a library for it. |
|
#5
|
|||
|
|||
|
Re: Explanantion needed on how to get USB data from the roboRIO
Quote:
Is it worth the trouble to do this? Or should I just try and find another way? |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|