RC NB Heli-X Joystick Calibration for Linux ver. 2

New and updated revision, version 2 and so on a lot of copypaste from old article.
Problem statement: HUGE deadzone with Heli-X Sim on NG ACE-RC (possible on any other input device).
- connect Joystick (in my case this is RCWARE RX2SIM)
- run jstest-gtk and got correct cal values for selected device
- run jscal for selected device per id basis, create script :
cd
echo \#\!/bin/sh > bin/jscal-usb-RCWARE_RX2SIM_Game_Controller_6D8433655353-joystick.sh
jscal -p /dev/input/by-id/usb-RCWARE_RX2SIM_Game_Controller_6D8433655353-joystick >> bin/jscal-usb-RCWARE_RX2SIM_Game_Controller_6D8433655353-joystick.sh
chmod +x bin/jscal-usb-RCWARE_RX2SIM_Game_Controller_6D8433655353-joystick.sh
sudo chown root bin/jscal-usb-RCWARE_RX2SIM_Game_Controller_6D8433655353-joystick.sh
- edit right udev rule:
cat << EOF | sudo tee /etc/udev/rules.d/85-usb-RCWARE_RX2SIM_Game_Controller_6D8433655353-joystick.rules
SUBSYSTEM=="input", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="a0eb", ACTION=="add", RUN+="/home/ilyxa/bin/jscal-usb-RCWARE_RX2SIM_Game_Controller_6D8433655353-joystick.sh"
EOF
- reconnect joystick, that’s all, folks 😉 Have fun 🙂