Cleric-K / vJoySerialFeeder

Feed Virtual Joystick driver with data from a serial port
GNU General Public License v3.0
258 stars 55 forks source link

Help with Custom Controller Protocol #61

Closed ausbollinger13 closed 2 years ago

ausbollinger13 commented 2 years ago

CheatSheet.pdf

IMG-6901 (1) Hello Cleric, This is not an issue with your program. It works great and thank you! I am trying to reach out for some help on how I might add a serial device protocol to your list. I have a custom controller built for NASA 20 years ago and put on the ISS for research purposes. It is a joystick with an arduino uno board inside, but when it was developed it was made with a custom 9-byte serial device protocol. My end goal is to use these controllers on ISS to control X-Plane simulator to test astronaut flight performance during long-duration missions. They respond by if you send them a 'r' command to the joystick serial device it will send you back a data packet. I am a beginner programmer, but I was tasked to try to do this. Do you know who might be able to help? I appreciate your time.

Cleric-K commented 2 years ago

Hi, it should be fairly easy to implement this protocol. In the pdf there're one-byte and two-byte channel versions. You say that yours is using the first (with 9 bytes total in the packet)?

ausbollinger13 commented 2 years ago

I believe it is just doing the basic 9-byte data packet. The first one on the sheet.

Cleric-K commented 2 years ago

OK, I'll look into it in the coming days, I hope it's not that urgent for you.

ausbollinger13 commented 2 years ago

Not urgent at all. I'm just looking for any help or advice you have to offer. I don't know too much about USB serial device protocols. If this ends up being a suitable way for these controllers I will for sure give credit for your vjoySerialFeeder program in our published research.

Cleric-K commented 2 years ago

Release.zip Here, you can test this. There's a new protocol to choose called NASA. Currently the 9 bytes are simply read as 9 channels. The byte with switch positions will be appropriate for the Bitmapped Button mapping.

ausbollinger13 commented 2 years ago

The protocol you made works great. Thank you very much!

Cleric-K commented 2 years ago

Great! I'll be happy to take a look at the paper when it's out, if possible :)

ausbollinger13 commented 2 years ago

Happy to send you the paper! This study might take a couple of years as our goal is to determine an astronaut's manual crew override ability during stressful situations. We will be capturing data on ISS and through the Artemis moon missions. We are currently working on approval to record this data as it is high risk what we are asking. We are going to have astronauts do an inflight test using these hand controllers to control the x-plane but as soon as they land back on earth we are going to put them in an actual plane and have things fail and see if they can recover. Pretty risky, but necessary for the moon missions. At some point feel free to reach out and send me your information so I can capture you as the developer for the serialdevicefeeder software. You can send it to my work email: @. or @.

Thank you again!

On Mon, Sep 12, 2022 at 10:25 AM Cleric-K @.***> wrote:

Great! I'll be happy to take a look at the paper when it's out, if possible :)

— Reply to this email directly, view it on GitHub https://github.com/Cleric-K/vJoySerialFeeder/issues/61#issuecomment-1243907734, or unsubscribe https://github.com/notifications/unsubscribe-auth/A26SRFUDHEQBNQ5V7G3BJM3V55DPLANCNFSM6AAAAAAQH4Y5CM . You are receiving this because you modified the open/close state.Message ID: @.***>

Cleric-K commented 2 years ago

Hi, seems github censors email addresses. Can you please send your email to this disposable address: fdgdfsvxcer at trashmail.se