![]() |
|
|||||||
| IL-2 Sturmovik The famous combat flight simulator. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Ok, understood, Mr Pfeil.
You (Jack) should do a test before assembling your box. Connect directly the board to pc ( with some pots soldered, etc). Be carefull not to short circuit any thing, of course. |
|
#2
|
|||
|
|||
|
Arduino UNO has a safe USB connection but CDC (unless you do some major hacking) not HID.
Jack Aubrey, do you have some way to go from COM: to joystick? If not then check out the Teensy 2.0 or Teensy++ 2.0 that are very easy to code as HID. If you're not a solder-Ace, get one *with pins* as those holes are real close to little surface-mount parts. The ones with-pins plug right into breadboards. http://www.pjrc.com/teensy/index.html They are a bit non-standard (Arduino compatible) but you can still use the IDE you have (Teensy software gives more options in Tools) and practically all the UNO code will run correct once you change pin numbers to match. http://www.pjrc.com/teensy/teensyduino.html Teensy 2.0 has 12 10-bit analog pins as opposed to the UNO's 6. |
|
#3
|
|||
|
|||
|
The thing is that i'd been really slow as i'm almost noob to programming, there was the trouble for the HID part, that i've already solved using LUFA.
But then recently i heard that Il2 only manage devices with 8 axis, 32 buttons and a hat, thus make all my work almost worthless (ok that's not completly true but it wont help either). Now a little bit of info on my device, actually is a single joystick HID that has 6 axis and 56 buttons. Buttons are going to be 13 momentary, 26 are going to be "fixed position" so they only send button pushed when a change of state is sensed , and lastly but not easier there are 14 that would be from 7 rotary encoders. What i was aiming with all of this was to make my heavy pit so i could fly the Pe-8 (for an official example The thing is that i try to think a little bit forward and i recently learn that 4.12 would have a axis for mix, so it would be an axis for every motor (that's my own thinking).... that give me 4 new axis and take out 12 fixed position (the one i would use for setting the mix through a 12 position switch).... And yes i've already known that the il2 only sees 4 usb devices, and there's trouble again |
|
#4
|
|||
|
|||
|
You can make the thing HID as joystick, keyboard and mouse at the same time (at least with the Teensy). So you can move your extra buttons as keys and combo-keys and make your own head tracking too.
LUFA, now I know what Nick Gammon's sig is about! I still like the Teensy's better. They are not limited to 115,200 baud since the USB is built right into the main chip. They get far higher data rates. |
|
#5
|
||||
|
||||
|
Quote:
|
|
#6
|
||||
|
||||
|
Dont know if we are getting 4 axis for the mix, probably we get only one as we did for radiator. (of course i would love to see 4 axis for radiators and plus 4 axis for mixture).
Let´s wait for 4.12 to come out... |
|
#7
|
|||
|
|||
|
Thanks for your replies, lets see ...
MaxGunz it's true that after fighting this hard with arduino i should have been more conservative and buy something like the teensy as it seem to be more focused on the device/controller stuff. DD_crash.... that's some thing i'been thinking, but right now i will keep working with what i have right now... what i mean is that is just a future thing whenever i get enough money... also you still have one axis unused and a few buttons so you can use the empty handle or the base for a few extras... Bolelas yeah thats right, we would only have one axis for mix but as you almost say dreaming is free |
![]() |
| Thread Tools | |
| Display Modes | |
|
|