USB HID Joystick & PPM-In program

More
14 May 2013 17:52 #9981 by vlad_vy
Replied by vlad_vy on topic USB HID Joystick & PPM-In program
At 'Trainer Cfg' pages 'Trainer Sw' 'None' is a button (grey), if pressed then it change next position in the list = !AIL.

Please Log in or Create an account to join the conversation.

More
14 May 2013 18:47 #9982 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program

vlad_vy wrote: At 'Trainer Cfg' pages 'Trainer Sw' 'None' is a button (grey), if pressed then it change next position in the list = !AIL.

This is just like all other switch assignments.
for instance lets say you want to use MIX to control the trainer, but it is a 3-way.
You could set it to '!MIX0' so that both pos2 and pos3 enable trainer mode. I don't know that it is all that useful, but it is consistent with the rest of Deviation.

Please Log in or Create an account to join the conversation.

More
14 May 2013 18:51 #9983 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program

rbe2012 wrote: Good decision, I think. Better we have a working config where some values are constant defaults (=0?) than configs who are only valid under special conditions.
PB, must we have PPMin profiles? If you think about some kind of calibration for the inputs it will be different for the different tx. And such things as channel directions and allocation can differ too (e.g. WK vs. DX). I would appreciate to save the PPMin configuration separated from the model and include them in different model configs.

That is reasonable. We could use them for PPMOut too.
I need to think about how to implement it though. Using a full block for each profile is very wasteful, so that indicates using a single ini with all profiles in it. That can be done, but I need to figure out how to use the ini parser that way.
I'm not sure I want to save the profile name in the model though. It would be easier to just use it as a template and copy the values into the relevant PPMIn parameters. The downside is you couldn't know by looking at it which profile you had selected. I'll need to think about it some more.

Please Log in or Create an account to join the conversation.

More
15 May 2013 03:51 #9992 by vlad_vy
Replied by vlad_vy on topic USB HID Joystick & PPM-In program

PhracturedBlue wrote:

vlad_vy wrote: At 'Trainer Cfg' pages 'Trainer Sw' 'None' is a button (grey), if pressed then it change next position in the list = !AIL.

This is just like all other switch assignments.
for instance lets say you want to use MIX to control the trainer, but it is a 3-way.
You could set it to '!MIX0' so that both pos2 and pos3 enable trainer mode. I don't know that it is all that useful, but it is consistent with the rest of Deviation.


I see that, but why the 'None' is the active button and change 'AIL' but not itself.

Please Log in or Create an account to join the conversation.

More
15 May 2013 04:24 #9993 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program

vlad_vy wrote: I see that, but why the 'None' is the active button and change 'AIL' but not itself.

I can't reproduce this with the current build on either my Devo8 or the emulator.
when I toggle 'None' nothing happens. When I switch to AIL (which might be !AIL depending on how many times I clicked 'None') I can then toggle the '!'

Please Log in or Create an account to join the conversation.

More
15 May 2013 04:47 - 15 May 2013 04:53 #9995 by vlad_vy
Replied by vlad_vy on topic USB HID Joystick & PPM-In program

PhracturedBlue wrote: which might be !AIL depending on how many times I clicked 'None'


This is that about I said, why 'None' change state of 'AIL'? Why 'None' is active button, but nothing happened when I press it?
Last edit: 15 May 2013 04:53 by vlad_vy.

Please Log in or Create an account to join the conversation.

  • rbe2012
  • rbe2012's Avatar
  • Offline
  • So much to do, so little time...
More
15 May 2013 04:55 #9997 by rbe2012
Replied by rbe2012 on topic USB HID Joystick & PPM-In program
Clicking on the button changes its property 'inverted'. This is used for any switch chosen and can be changed whatever switch is selected.
But vlad is right: it should have no effect on "None".
But this is easily reverted so I would keep this instead of changing the code at multiple places...

Please Log in or Create an account to join the conversation.

More
15 May 2013 05:18 - 15 May 2013 05:27 #9999 by vlad_vy
Replied by vlad_vy on topic USB HID Joystick & PPM-In program
I don't understand the problem. At complex mixer page 'Switch' - 'None' is not active button (white), but other options are active (grey).
Last edit: 15 May 2013 05:27 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
31 May 2013 08:53 #10459 by HornetMaX
Replied by HornetMaX on topic USB HID Joystick & PPM-In program
I'm sorry to interrupt the whole PPM/trainer discussion, but I'd like to know what is the status of the "USB HID Joystick" part.

I'm very interested in that feature as I'd like to try using a TX as USB joystick as replacement of crappy joypads for some simulation games (actually, for one simulation game, GP Bikes, amazing stuff if you're into bikes).

My understanding of the first posts is that hmjack2008 has some source files that can be "added" to deviation code in order to compile a firmware with USB joystick support. A bit messy for the average user.

Is this feature going to be integrated for good into deviation ?
I could easily buy a Devo TX just for that (I'm very sorry but I have no time to fly helis, at least at the moment, tried in the past and had to sell the whole thing, no time to use it).

MaX.

Please Log in or Create an account to join the conversation.

More
09 Jun 2013 00:43 #10727 by notyet
Replied by notyet on topic USB HID Joystick & PPM-In program
I'd enjoy the USB HID function as well if its possible- That would eliminate the need for the USB PPM adapter...

Please Log in or Create an account to join the conversation.

More
09 Jun 2013 19:46 #10735 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program
I implemented the ability to use the transmitter as a Gamepad today. It supports 12 channels (channels 7-12 are 'sliders' I'm not sure they'll work with most software)
It seems to work pretty well in my light testing. This is enabled by selecting the 'USB HID' protocol

Note that the Devo7e is not supported. Getting the HID code to fit inside the Devo7e will require a bunch of munging to fit it into the loadable-module section. As it will be tedious work, I don't feel like working on it right now.

Please Log in or Create an account to join the conversation.

More
09 Jun 2013 22:00 - 09 Jun 2013 22:01 #10738 by victzh
Replied by victzh on topic USB HID Joystick & PPM-In program
I used Devo 10, and while it is recognized as USB HID device (I did not manage Phoenix to make to use it, probably some intermediate drivers are needed), but when after configuration of USB HID protocol I first turned it off and then turned on it started to vibrate and did not start normally. Some parts of the firmware are working, e.g. it reported unsafe position of throttle, but after moving throttle down it again started unending vibration. I fixed it only by starting it in USB mode and modifying the model file to turn off USB HID.
Last edit: 09 Jun 2013 22:01 by victzh. Reason: missed verb

Please Log in or Create an account to join the conversation.

More
09 Jun 2013 22:21 - 09 Jun 2013 22:21 #10739 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program
You can not use Phoenix with this (well, not legally). Phoenix uses a proprietary dongle and is not a general HID device. No discussion of how one might enable it will be tolerated here.

I haven't tried the code on my devo10. I'll take a look.
Last edit: 09 Jun 2013 22:21 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
09 Jun 2013 22:56 #10741 by notyet
Replied by notyet on topic USB HID Joystick & PPM-In program
Clearview works fine with any USB joystick though, as do some other sims.

Please Log in or Create an account to join the conversation.

More
09 Jun 2013 23:54 #10744 by SadSack
Replied by SadSack on topic USB HID Joystick & PPM-In program
Steller work and 12 channels :)
If your only wanting sim use why not go wireless using A7105. At a guess could be done for $5~7 as cheap as a long usb lead :) Codes out there! And off the back of PB work done all ready.

Please Log in or Create an account to join the conversation.

More
10 Jun 2013 00:08 #10746 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program
note that currently, the code uses 8bit values per-channel, and 50msec refresh rate. This is typical for joysticks, and should be fine for a simulator, but If you wanted to use it as a direct input to Arduino, it may be somewhat limiting.

Please Log in or Create an account to join the conversation.

More
10 Jun 2013 00:54 #10749 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program
I just installed it on my Devo10, and I haven't seen any issues. It'd be helpful if you would send your model.ini and tx.ini

Please Log in or Create an account to join the conversation.

More
10 Jun 2013 02:55 #10750 by Scream
Replied by Scream on topic USB HID Joystick & PPM-In program
Heyas!

I Can haz this magic from the nightbuilds?

I'd love to use my devo for WOWP, or any other fps... Now if you can make it ps3 compatible... u can has my 1st born son!

Cheers!
-=S=-

Cheers!
-=S=-

Please Log in or Create an account to join the conversation.

More
10 Jun 2013 14:28 - 10 Jun 2013 15:27 #10766 by BitOne
Replied by BitOne on topic USB HID Joystick & PPM-In program
Hello,

Thanks a lot PB for this cool new feature !

I just pulled the last version from repo and I have a problem:
- I connected the TX to the PC via USB
- I created a model by copying an existant one
- I changed the protocol to USB HID
- => at this point, the PC doesn't see anything
[22471.192641] usb 3-1.2: new full-speed USB device number 82 using ehci-pci
[22471.264726] usb 3-1.2: device descriptor read/64, error -32
[22471.440486] usb 3-1.2: device descriptor read/64, error -32
- I switch off and switch on the TX
=> the TX goes into a infinite reboot loop
- I changed back the current_model in tx.ini to a working one by switching to USB mode
=> the TX switches on correctly
- I choose the USB model and click on Reinit =
=> the TX reboots

Here is the content of the error.txt file:

[Hard fault]
devo8-v3.0.0-f2266e
R0 = 200032e8
R1 = 40022f56
R2 = 00000006
R3 = 00000001
R12 = 00000020
LR [R14] (subroutine call return address) = 08009601
PC [R15] (program counter) = 08009350
PSR = 8100002e
BFAR = e000ed38
CFSR = 00000400
HFSR = 40000000
DFSR = 00000000
AFSR = 00000000
SCB_SHCSR = 00000000
Top of Stack:2000c000
Stack Detect:2000bf74
Backtrace:
2000bf88 : 08009601
2000bf9c : 08009601
2000bfac : 08009eb3
2000bfb4 : 0801cd23
2000bfb8 : 0801ccdd
2000bfcc : 08005c8f
2000bfec : 0801cd5f
Done

But I managed to make it work once by luck: the TX was rebooting in an infinite loop. So I switched it off and I switch it on again while pressing on the ENT button to go to USB Mass Storage mode as I wanted to fix the tx.ini file. But I released the button too soon and the TX booted to the normal mode, but this time with the USB HID enabled !:
[22485.395599] usbcore: registered new interface driver usbhid
[22485.395602] usbhid: USB HID core driver
[22485.401065] input: DeviationTx Deviation GamePad as /devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.2/3-1.2:1.0/input/input12
[22485.401372] hid-generic 0003:0483:5710.0001: input,hidraw0: USB HID v1.00 Gamepad [DeviationTx Deviation GamePad] on usb-0000:00:1a.0-1.2/input0

But I didn't manage to make it works twice.
Last edit: 10 Jun 2013 15:27 by BitOne.

Please Log in or Create an account to join the conversation.

More
10 Jun 2013 15:33 - 10 Jun 2013 15:43 #10767 by PhracturedBlue
Replied by PhracturedBlue on topic USB HID Joystick & PPM-In program
Are you using tonight's nightly, or did you build yourself? If you build yourself I need the devo8.elf file from the build
Please post your tx.ini and model.ini as well

Edit: The error file indicates you are likely using the nightly build from tonight. If so, it is odd, because it indicates a hard-fault occurred during USB transfer. It implies possibly an uninitialized variable.

The nightly builds are built on a different machine than my testing is done, and with a different compiler version. When I get home, I'll load the nightly onto my Tx and see if I see the issue. But proivide the model.ini and tx.ini as well
Last edit: 10 Jun 2013 15:43 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum