Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Download Outerra Tech Demo. Unofficial Outerra Discord server, MicroProse Discord server for OWS.

Author Topic: Joystick axis detection  (Read 9650 times)

Elecman

  • Jr. Member
  • *
  • Posts: 14
  • newbie
Joystick axis detection
« on: June 27, 2014, 09:13:49 pm »

Can you decrease the sensitivity of the automatic joystick axis detection (for axis assignment)? One of the axis on my joystick is a bit jittery and constantly interferes with the assignment selection.
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Joystick axis detection
« Reply #1 on: June 28, 2014, 04:31:58 am »

The threshold for detection is half the axis range, would it jitter as much?
Some joysticks & their firmware versions send data in invalid format, I think the throttle in Warthog is one of them, sending data in big-endian format. But when we patched it, other Warthog owners complained that it broke for them. It looks like there are two versions, but we do not have enough info to discern them and work around it.
Logged

aWac9

  • Hero Member
  • *****
  • Posts: 2601
  • newbie
Re: Joystick axis detection
« Reply #2 on: June 28, 2014, 06:50:00 am »

Logged

Elecman

  • Jr. Member
  • *
  • Posts: 14
  • newbie
Re: Joystick axis detection
« Reply #3 on: June 28, 2014, 07:27:13 am »

My joystick is indeed the Thrustmaster HOTAS Warthog with throttle and stick. I didn't try the deadzone setting yet, will give that a go.

If you want, I can do some debugging for you.

Edit:
The problem is caused by the gray slider wheel right of the throttle. Setting it out of the middle kind of solves the problem but changing the dead zone does not. I checked the output again and in fact it is not jittery at all. So presumably the problem is caused by the slider being in the middle position, right on the edge of the detection threshold. Maybe detecting a change of motion instead of a hard coded location is a better idea?
« Last Edit: June 28, 2014, 08:02:44 am by Elecman »
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Joystick axis detection
« Reply #4 on: June 28, 2014, 08:11:09 am »

The detection is based on the change of motion. If the HOTAS sends big-endian data, even small jitter makes large jumps in output. Btw have you the latest drivers & firmware installed for it?
Logged

Elecman

  • Jr. Member
  • *
  • Posts: 14
  • newbie
Re: Joystick axis detection
« Reply #5 on: June 28, 2014, 08:26:43 am »

No, I didn't install any drivers. Let me try that.

Edit:
I installed the driver and updated the firmware. Problem still persists.
« Last Edit: June 28, 2014, 09:56:24 am by Elecman »
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Joystick axis detection
« Reply #6 on: June 28, 2014, 10:44:19 am »

Ok, can you do the following? Set enable_hid_logging=true in eng.cfg, and send us the eng.log file from a short session where you test t in that problematic way.
Logged

Elecman

  • Jr. Member
  • *
  • Posts: 14
  • newbie
Re: Joystick axis detection
« Reply #7 on: June 28, 2014, 08:05:33 pm »

Ok, here is the log
https://drive.google.com/file/d/0Bwk4bDWv3jAcckxsaDV6Zy1TQWs/edit?usp=sharing

By the way, you have elevator up and down reversed. If the elevator goes up, the aircraft should go up as well.
« Last Edit: June 28, 2014, 08:16:21 pm by Elecman »
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Joystick axis detection
« Reply #8 on: June 29, 2014, 02:20:04 am »

Yea, Axis 7 comes in big-endian format, causing all the problems. But I found the workaround for HOTAS wasn't activating, and there was a bug in the detection of the joystick.
Logged

Elecman

  • Jr. Member
  • *
  • Posts: 14
  • newbie
Re: Joystick axis detection
« Reply #9 on: June 29, 2014, 09:30:13 am »

Ok, thanks for clearing this up.
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6721
  • No sense of urgency.
    • outerra.com
Re: Joystick axis detection
« Reply #10 on: June 30, 2014, 02:31:53 am »

Please check with the latest version, eng.log should contain a line about detecting HOTAS.
Logged

Elecman

  • Jr. Member
  • *
  • Posts: 14
  • newbie
Re: Joystick axis detection
« Reply #11 on: June 30, 2014, 03:25:33 am »

Ok, it works now, but the tiny joystick on the throttle
(middle one here:)
http://www.gamingnexus.com/images/Article/ggqbqj3077/3.jpg

and the main joystick bare both mapped to axis 0 and 1. 
Logged

angrypig

  • Sr. Member
  • ****
  • Posts: 454
Re: Joystick axis detection
« Reply #12 on: June 30, 2014, 04:56:20 am »



Ok, it works now, but the tiny joystick on the throttle
(middle one here:)
http://www.gamingnexus.com/images/Article/ggqbqj3077/3.jpg

and the main joystick bare both mapped to axis 0 and 1. 

It should be OK because axis number is relative to device and there are two devices in your setup "Joystick - HOTAS Warthog" and "Throttle - HOTAS Warthog". There should be number before colon identifying device like "1:Axis0" or "1:Btn0".
Logged

Elecman

  • Jr. Member
  • *
  • Posts: 14
  • newbie
Re: Joystick axis detection
« Reply #13 on: June 30, 2014, 05:54:25 am »

Ok, good :-)
Logged