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: 2420
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

Post Reply