Anyway to fix dead zone of Elite controller in Gtuner IV?

GPC2 script programming for Titan Two. Code examples, questions, requests.

Anyway to fix dead zone of Elite controller in Gtuner IV?

Postby WildnFire » Thu Feb 08, 2018 11:20 pm

I have a defective left thumb stick on my Elite controller.. I'm sure most know it as the drifting thumbstick.. I have messed with the deadzones within Xbox app but nothing helps. Is there anything within Gtuner IV that could help? The drift is killing me every game and I'm waiting on a replacement until then :/
User avatar
WildnFire
Staff Sergeant
Staff Sergeant
 
Posts: 13
Joined: Sat Feb 03, 2018 7:24 pm

Re: Anyway to fix dead zone of Elite controller in Gtuner IV

Postby Sillyasskid » Fri Feb 09, 2018 1:34 am

whats the resting offset for your stick? In the device monitor look at the values for STICK_2_X & STICK_2_Y, It may be listed as Left Stick X & Left Stick Y for you.

When your in game and you notice the stick drift, note down the values for both Left Stick X and Left Stick Y.

Then post them here, and ill have a look to see what can be done. You can make the deadzone larger with a simple script. But it may be possible to preserve most of the deadzone instead with a more complex script. I just need to know the resting values for both Left Stick X and Left Stick Y first.
User avatar
Sillyasskid
Captain
Captain
 
Posts: 574
Joined: Sat May 14, 2016 3:07 am

Re: Anyway to fix dead zone of Elite controller in Gtuner IV

Postby bonefisher » Fri Feb 09, 2018 2:14 am

Code: Select all
 
/* Look at device monitor and get numbers on stick drift.
If drift is running positive number then bring back the
other way with a negative number til you 0.0 out the stick
or other way if thats the case. Add a - in front of red
number in the define section if you need negative result.*/

 
#define drift_1_Y  0.0
#define drift_1_X  0.0
#define drift_2_Y  0.0
#define drift_2_X  0.0
 
main
{
    /* Stick Drift Fix */
    Driftor(STICK_1_Y, drift_1_Y);
    Driftor(STICK_1_X, drift_1_X);
    Driftor(STICK_2_Y, drift_2_Y);
    Driftor(STICK_2_X, drift_2_X);
}
void Driftor(uint8 axis, fix32 drift)
{
    set_val(axis, (drift * (100.0 - abs(get_val(axis)))) / 100.0 + get_actual(axis));
}
 

Few different ways of doing this but here is one way... :smile0517:
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: Anyway to fix dead zone of Elite controller in Gtuner IV

Postby teddy18 » Sun Apr 25, 2021 3:28 am

Thank you

Don't work right stick Y has positive value dirft
if I add value it double it up I need negative value

Left stick Y 8.00 Drift

I need this for my joycon
User avatar
teddy18
Lieutenant
Lieutenant
 
Posts: 346
Joined: Sun Jul 19, 2015 4:18 pm


Return to GPC2 Script Programming

Who is online

Users browsing this forum: EvilGlenn and 155 guests