Joystick not detected

Moderators: Uros, Tom, OXO

ThomasTL
Posts: 16
Joined: Sun Mar 21, 2021 8:10 am

Re: Joystick not detected

Post by ThomasTL » Sun Apr 04, 2021 3:04 pm

Thanks for your help to all of you.
It has been very useful for me to debug and make it work. Yes, now it finally works. I hope that my findings will be helping anyone having issues using a Arduino Micro and this joystick library: https://github.com/MHeironimus/ArduinoJoystickLibrary
Although in the Arduino application source code I was setting the X Axis, Y Axis and Z Axis, somehow my X & Y Axis were seen as Accelerate and Steering. I believe Condor doesn't take these inputs as valid axis to assign.
I modified slightly my Arduino application source code and transformed the following line:

Code: Select all

Joystick_ Joystick;
To this one, where I enable only X, Y and Z axis, 32 buttons and disable any other output (such as accelerate, steering, brake):

Code: Select all

Joystick_ Joystick (  JOYSTICK_DEFAULT_REPORT_ID,
                      JOYSTICK_TYPE_JOYSTICK,
                      32,     // Number of available buttons
                      0,      // Number of available hat switches
                      true,   // X Axis
                      true,   // Y Axis
                      true,   // Z Axis
                      false,  // X Axis Rotation
                      false,  // Y Axis Rotation
                      false,  // Z Axis Rotation
                      false,  // Rudder
                      false,  // Throttle
                      false,  // Accelerator
                      false,  // Brake
                      false   // Steering
                     ); 
Now it works well and I managed to assign the right axis in Input -> Assign controls settings.
This is finally fixed!!
Thanks everyone for your help and comments. Really appreciate it.
Image

ThomasTL
Posts: 16
Joined: Sun Mar 21, 2021 8:10 am

Re: Joystick not detected

Post by ThomasTL » Sun Apr 04, 2021 3:10 pm

Input -> Assign controls settings finally working. Yes!

Assign controls.PNG
You do not have the required permissions to view the files attached to this post.
Image

ThomasTL
Posts: 16
Joined: Sun Mar 21, 2021 8:10 am

Re: Joystick not detected

Post by ThomasTL » Sun Apr 04, 2021 3:26 pm

For those interested to get the entire source code of the Arduino application.
I just created a git repo here:
https://github.com/ThomasTL/Flight-Simulator-Controller
Image

User avatar
wickid
Posts: 2429
Joined: Mon Dec 04, 2006 7:32 pm
Location: Venlo, NL
Contact:

Re: Joystick not detected

Post by wickid » Sun Apr 04, 2021 8:38 pm

Excellent, enjoy your flights. That stick looks great
PH-1504, KOE

echofive
Posts: 18
Joined: Mon Jul 23, 2018 8:23 am

Re: Joystick not detected

Post by echofive » Thu Mar 21, 2024 8:07 pm

Was this issue ever solved?
I am having the same trouble. This is with my own construction of "joystick" in an old Blanik cockpit using arduino/sparkfun parts.
Today I have a clue that Condor may refuse to recognise a joystick without hat switch.
--MikeM

echofive
Posts: 18
Joined: Mon Jul 23, 2018 8:23 am

Re: Joystick not detected

Post by echofive » Mon Mar 25, 2024 1:36 am

now the "hat switch" clue is a dead end.

Condor2 even, for a few days, refused to recognise the existence of an ordinary Thrustmaster joystick. Now it does recognise it. No idea what might have caused that change.
In all instances Windows 10 has recognised the joysticks in "control panel\hardware and sound\Devices and Printers" right-click on device, left-click on "Game Controller Settings", left-click on "Properties", "Test" tab shows joystick state .... only Condor2 has been recalcitrant.

Post Reply