Horizon Zero Dawn - Controller Dead Zone Removed

Описание к видео Horizon Zero Dawn - Controller Dead Zone Removed

The controller really doesn't have a dead zone. The dead zone is built into the game. This experiment bypasses the dead zone by applying a bias in the command equal to the dead zone prior to shipping the command to the game.

Hardware:
- Two joysticks.
- Arduino Micro Pro (not using builtin 10bit analog inputs).
- Two 16bit ADS1115 (using differential, gain=2, datarate=250).
- Four trimmer potentiometers (for differential and to adjust for zero).
- Micro switch to do resets needed to upload sketch.

Library:
- Adafruit ADS1115
- https://www.partsnotincluded.com/how-...

Arduino IDE:
1.8.18

PC Windows 10 Home Edition for both game and IDE.

Example on how drift is removed for zero dead zone    • Horizon Zero Dawn Complete Edition - ...  
Aiming without a dead zone    • Horizon Zero Dawn - Aiming Without a ...  

Fundamentally dead-zone removal is:
𝚏𝚕𝚘𝚊𝚝 𝚇,𝚈,𝚁;
𝚏𝚎𝚝𝚌𝚑_𝚓𝚘𝚢𝚜𝚝𝚒𝚌𝚔( 𝚇, 𝚈 );
𝚁 = 𝚜𝚚𝚛𝚝( 𝚇*𝚇 + 𝚈*𝚈 );
𝚇 /= 𝚁;
𝚈 /= 𝚁;
𝚁 += 𝙳𝚎𝚊𝚍_𝚉𝚘𝚗𝚎_𝚁𝚊𝚍𝚒𝚞𝚜;
𝚇 *= 𝚁;
𝚈 *= 𝚁;
𝚜𝚎𝚗𝚍_𝚓𝚘𝚢𝚜𝚝𝚒𝚌𝚔( 𝚇, 𝚈 );

Комментарии

Информация по комментариям в разработке