Difference between revisions of "FlightGear: Kalibrasi Joystick"

From OnnoWiki
Jump to navigation Jump to search
(New page: Sumber: http://www.mail-archive.com/flightgear-users@flightgear.org/msg10501.html Steven Wayne wrote: > Can someone tell me how to get Flightgear to use the ~/.joystick > file produced b...)
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Sumber: http://www.mail-archive.com/flightgear-users@flightgear.org/msg10501.html
 
Sumber: http://www.mail-archive.com/flightgear-users@flightgear.org/msg10501.html
  
 +
Flightgear tampaknya tidak menggunakan fie ~/.joystick yang di hasilkan oleh jscalibrator.
  
Steven Wayne wrote:
+
Kalibrasi Joystick dapat menggunakan perintah jscal. Caranya menggunakan perintah
> Can someone tell me how to get Flightgear to use the ~/.joystick
 
> file produced by jscalibrator.
 
  
You don't. Joystick calibration happens at the kernel level,
+
  sudo apt-get install joystick
FlightGear just reads the values out of the device and assumes they
 
are correct.
 
  
I don't know the jscalibrator tool, nor the .joystick file. The way
+
  jscal -c /dev/input/js0
the "official" command line jscal tool works is to print out the
 
calibration as a runnable command.
 
  
So you do "jscal -c /dev/js0" to calibrate your stick.
+
Selanjutnya jalankan perintah
  
Then "jscal -p /dev/js0 > calibrate-stick.sh" to create a shell script
 
that you can use to re-do the calibration in the future.
 
  
Then, after the next reboot or whenever, "sh calibrate-stick.sh" to
+
jscal -p /dev/input/js0 > calibrate-stick.sh
reproduce the calibration.
 
  
I think some distributions actually do the saving of joystick settings
+
untuk membuat script yang dapat kita gunakan untuk kalibrasi di kemudian hari.  
for you on shutdown/startup, although Fedora 4 is not one of them (I
+
Caranya pada saat reboot jalankan perintah
just checked). It may be that some desktop environments have similar
 
functionality.  But this is the "low level" mechanism underneath them
 
all.
 
  
Andy
+
sh calibrate-stick.sh
  
  
Line 34: Line 23:
  
 
* http://www.mail-archive.com/flightgear-users@flightgear.org/msg10501.html
 
* http://www.mail-archive.com/flightgear-users@flightgear.org/msg10501.html
 +
* http://wiki.flightgear.org/Input_device
  
 
==Pranala Menarik==
 
==Pranala Menarik==

Latest revision as of 07:21, 28 February 2016

Sumber: http://www.mail-archive.com/flightgear-users@flightgear.org/msg10501.html

Flightgear tampaknya tidak menggunakan fie ~/.joystick yang di hasilkan oleh jscalibrator.

Kalibrasi Joystick dapat menggunakan perintah jscal. Caranya menggunakan perintah

sudo apt-get install joystick
jscal -c /dev/input/js0

Selanjutnya jalankan perintah


jscal -p /dev/input/js0 > calibrate-stick.sh

untuk membuat script yang dapat kita gunakan untuk kalibrasi di kemudian hari. Caranya pada saat reboot jalankan perintah

sh calibrate-stick.sh


Referensi

Pranala Menarik