Hello, im trying to have a 6 axis usb joystick using teensy lc. this is for a twin throttle quadrant for flight sim.
Im hoping perhaps a kind person can help me figure it out.
Ive flashed an example form teensyduino and set "keyboard+mouse+joystick" in usb settings and flashed.
Ive noticed some strange things
1) in ubuntu jstest-gtk is detecting 3 devices,
"teensyduino keyboard/mouse/joystick mouse" with 2 axis 8 buttons /dev/input/js1
"teensyduino keyboard/mouse/joystick" with 7 axis and 32 buttons /dev/input/js2
"teensyduino keyboard/mouse/joystick" with 12 axis and 78 buttons /dev/input/js3
only "teensyduino keyboard/mouse/joystick" with 7 axis and 32 buttons seems to be reporting any values.
2) only 2 axis actually work as axis, the other work as HAT , they have only 2 positions, 1 or 0, so only when i move the lever to the max the axis goes to 100% and when i move the lever to the min goes to 0 as a digital change, not gradual.
axis 5 is not even responding
how can i have 6 normal analogue axis reported as a usb joystick? ive measured with a multi-meter and all analogue axis from 0-5 are being feed voltage from 0 to 3.3v. im using analogue ports 0-5 pins 14 to 19.
code:
thanks so much for your help
Im hoping perhaps a kind person can help me figure it out.
Ive flashed an example form teensyduino and set "keyboard+mouse+joystick" in usb settings and flashed.
Ive noticed some strange things
1) in ubuntu jstest-gtk is detecting 3 devices,
"teensyduino keyboard/mouse/joystick mouse" with 2 axis 8 buttons /dev/input/js1
"teensyduino keyboard/mouse/joystick" with 7 axis and 32 buttons /dev/input/js2
"teensyduino keyboard/mouse/joystick" with 12 axis and 78 buttons /dev/input/js3
only "teensyduino keyboard/mouse/joystick" with 7 axis and 32 buttons seems to be reporting any values.
2) only 2 axis actually work as axis, the other work as HAT , they have only 2 positions, 1 or 0, so only when i move the lever to the max the axis goes to 100% and when i move the lever to the min goes to 0 as a digital change, not gradual.
axis 5 is not even responding
how can i have 6 normal analogue axis reported as a usb joystick? ive measured with a multi-meter and all analogue axis from 0-5 are being feed voltage from 0 to 3.3v. im using analogue ports 0-5 pins 14 to 19.
code:
void setup() {
Joystick.useManualSend(true);
}
void loop() {
Joystick.X(analogRead(0));
Joystick.Y(analogRead(1));
Joystick.Z(analogRead(2));
Joystick.Zrotate(analogRead(3));
Joystick.sliderLeft(analogRead(4));
Joystick.sliderRight(analogRead(5));
Joystick.send_now();
delay(5);
}
thanks so much for your help