custom joystick electronics
custom joystick electronics
C2 does not recognise my custom joystick electronics. FlightGear recognises it just fine. So does HTML5 Gamepad Tester.
It is a ProMicro board from Sparkfun using their joystick example code extended to read the control positions using a magnet on each control and magnetic field sensors (also from Sparkfun).
Has anybody done this kind of thing with C2 successfully?
It is a ProMicro board from Sparkfun using their joystick example code extended to read the control positions using a magnet on each control and magnetic field sensors (also from Sparkfun).
Has anybody done this kind of thing with C2 successfully?
- EDB
- Posts: 1575
- Joined: Mon Oct 31, 2011 1:17 am
- Location: The Netherlands, Europe Continent, Earth Planet, Milky Way Galaxy, Virgo Super Cluster
Re: custom joystick electronics
No experience with ProMicro board from Sparkfun here, but like the ones from Leo Bodnar they should work like A regular Windows stick.
Check if it is recognized by Windows USB Game Controllers. And calibrate it. That should be enough.
And assign the axis,, buttons, etc in Condor Setup...
Check if it is recognized by Windows USB Game Controllers. And calibrate it. That should be enough.
And assign the axis,, buttons, etc in Condor Setup...
Re: custom joystick electronics
If in the windows joystick test/calibration app you can not achieve almost maximum deflection, condor setup will not assign the stick/axis. The movement needs to exceed ~90% of the maximum range before its being picked up.
If you can not change this range in the firmware of your stick, you should be able to assign the controller manually by editing controls.ini
C:\Users\yourname\Documents\Condor\Pilots\yourpilot
Let me know if you need help with that.
If you can not change this range in the firmware of your stick, you should be able to assign the controller manually by editing controls.ini
C:\Users\yourname\Documents\Condor\Pilots\yourpilot
Let me know if you need help with that.
Re: custom joystick electronics
I verified maximum deflection with the html5 tool (http html5gamepad com) .
Is there an explanation somewhere of how to configure controls.ini?
Do you know of any particular tests in Windows or Condor2 that would allow a game controller to be recognised by html5gamepad but not by Condor2?
I did notice that the devices picture in Windows looked a bit different between my controller and a Logitek .
Is there an explanation somewhere of how to configure controls.ini?
Do you know of any particular tests in Windows or Condor2 that would allow a game controller to be recognised by html5gamepad but not by Condor2?
I did notice that the devices picture in Windows looked a bit different between my controller and a Logitek .
Re: custom joystick electronics
EDB please explain "Windows USB Game Controllers".
So far I have only that html5 site for verifying the controller.
So far I have only that html5 site for verifying the controller.
- timbaeyens
- Posts: 261
- Joined: Mon Sep 12, 2005 1:31 am
Re: custom joystick electronics
Go to Control Panel: Control Panel\All Control Panel Items\Devices and Printers
Find your USB controller under Devices
Right click, and click Game controller settings
Check Status of your controller to be "OK"
Highlight your USB controller
Click Properties
Click Settings tab
Click Calibrate button
Find your USB controller under Devices
Right click, and click Game controller settings
Check Status of your controller to be "OK"
Highlight your USB controller
Click Properties
Click Settings tab
Click Calibrate button
TT
- EDB
- Posts: 1575
- Joined: Mon Oct 31, 2011 1:17 am
- Location: The Netherlands, Europe Continent, Earth Planet, Milky Way Galaxy, Virgo Super Cluster
Re: custom joystick electronics
If you have multiple controllers you can select a "Preferred Device" in the Game Controllers control panel by clicking the "Advanced" button and selecting the device...
Re: custom joystick electronics
and you are getting -1 to +1 ?
Not really. its a bit of a hack. And if your controller has no buttons, it may be difficult to use as I dont know how to obtain the hardware identifier that condor uses. For instance, for my joystick I see this:Is there an explanation somewhere of how to configure controls.ini?
Code: Select all
[{91A5FF50-C9EF-11E5-8001-444553540000}]
0=0
1=4
2=20
4=24
2005=32
3018=53
3019=52
3020=54
3021=55
3036=49
3063=51
3064=50
The first series of numbers are the condor controls. I think zero is aileron, 1 is elevator, 2 is rudder etc. The large numbers are functions like flaps, PDA,..
The second series of numbers identify the joystick axis (or button) and direction.
I have no idea Im afraid. Most problems I have seen with condor not recognizing a game controller are due to not enough "deflection". If thats not it, I dont think I can help you.Do you know of any particular tests in Windows or Condor2 that would allow a game controller to be recognised by html5gamepad but not by Condor2?
I did notice that the devices picture in Windows looked a bit different between my controller and a Logitek .
Re: custom joystick electronics
thank you janjansen.
There is definitely enough deflection. -1 to +1 indicated by html5gamepad. And the whole 8-bit range indicated by print statements in the arduino code of the proMicro joystick controller. That is the same range as comes from the Logitek joystick that condor does recognise.
Would you, please, tell me what html5gamepad reports for your joystick? And see how that relates to what is in controls.ini for that stick? Especially that identifier ([{91A5FF50-C9EF-11E5-8001-444553540000}]). I tried to make the identifier of mine match the Logitek's identifier without success. It even is reported differently by html5gamepad in a linux machine vs a windows machine.
Cheers,
Mike/echofive
There is definitely enough deflection. -1 to +1 indicated by html5gamepad. And the whole 8-bit range indicated by print statements in the arduino code of the proMicro joystick controller. That is the same range as comes from the Logitek joystick that condor does recognise.
Would you, please, tell me what html5gamepad reports for your joystick? And see how that relates to what is in controls.ini for that stick? Especially that identifier ([{91A5FF50-C9EF-11E5-8001-444553540000}]). I tried to make the identifier of mine match the Logitek's identifier without success. It even is reported differently by html5gamepad in a linux machine vs a windows machine.
Cheers,
Mike/echofive
Re: custom joystick electronics
html5gamepad reports:
1 SideWinder Force Feedback 2 Joystick (Vendor: 045e Product: 001b)
When I first needed to edit that file, I assumed it was a USB id, but Ive since looked everywhere, searched the registry, looked at all the properties in device manager and driver settings, I have even googled it, I dont know where that ID comes from or how to construct it
Im guessing the ID is given by some directx API call? You could try running dxdiag and see if your controller shows up in the input devices tab. But even if it does or does not, I dont see how that will solve your problem.
Uros?
1 SideWinder Force Feedback 2 Joystick (Vendor: 045e Product: 001b)
When I first needed to edit that file, I assumed it was a USB id, but Ive since looked everywhere, searched the registry, looked at all the properties in device manager and driver settings, I have even googled it, I dont know where that ID comes from or how to construct it
Im guessing the ID is given by some directx API call? You could try running dxdiag and see if your controller shows up in the input devices tab. But even if it does or does not, I dont see how that will solve your problem.
Uros?
- timbaeyens
- Posts: 261
- Joined: Mon Sep 12, 2005 1:31 am
Re: custom joystick electronics
It is the USB ID code for both the vendor and product :
https://www.the-sz.com/products/usbid/i ... &p=001b&n=
https://www.the-sz.com/products/usbid/i ... &p=001b&n=
TT
Re: custom joystick electronics
Code: Select all
Vendor: 045e Product: 001b
The question is what
Code: Select all
91A5FF50-C9EF-11E5-8001-444553540000
- timbaeyens
- Posts: 261
- Joined: Mon Sep 12, 2005 1:31 am
Re: custom joystick electronics
It is a CLSID or Class Identifier used to represent a specific instance of a Component Object Model or COM-based program.
Google parts of the code gave me this - I am totally out my depth here...
Google parts of the code gave me this - I am totally out my depth here...
TT
Re: custom joystick electronics
Try UCR (+ vJoy)
With Universal Control Remapper you can map your custom stick to vJoy and vJoy to Condor 2.
UCR: https://autohotkey.com/boards/viewtopic.php?t=12249
vJoy: http://vjoystick.sourceforge.net/
Good luck!
With Universal Control Remapper you can map your custom stick to vJoy and vJoy to Condor 2.
UCR: https://autohotkey.com/boards/viewtopic.php?t=12249
vJoy: http://vjoystick.sourceforge.net/
Good luck!