I am having some difficulties with the larger joystick configuration.
I am using Teesy 3.2 with Teensyduino 1.53. I have changed all 4 instances of JOYSTICK_SIZE in usb_desc.h to 64, but have not changed any other configuration files.
After many hours of struggles, I have gone back to the ExtremeJoystickTest.ino to take all the rest of my application out of the picture, and have further simplified the test, by putting fixed values in to the various functions
// place fixed values
Joystick.X(512);
Joystick.Y(512);
Joystick.Z(512 * 64);
Joystick.Xrotate(512 * 64);
Joystick.Yrotate(512 * 64);
Joystick.Zrotate(512 * 64);
Joystick.slider(1, 512 * 64);
Joystick.slider(2, 512 * 64);
Joystick.slider(3, 512 * 64);
Joystick.slider(4, 512 * 64);
Joystick.slider(5, 512 * 64);
Joystick.slider(6, 512 * 64);
Joystick.slider(7, 512 * 64);
Joystick.slider(8, 512 * 64);
You will see that I have got small mid-range values in for X & Y. This is because from an earlier test, I found that 16bit values over-ranged them, and I had to put 10bit values in to be able to observe anything.
On windows device manager, I can see X&Y set at mid range with 512 as input, followed by Joystick.Z, XRot, YRot & ZRot at mid range with 32768 as input values. Two sliders are visible, but they show no value. The hat is rotating as expected, and the buttons are visible.
If I connect the teensy to a Debian computer, jstest-gsk shows no axis inputs at all, but the hat and buttons appear as expected.
Referring briefly back to my own application, this worked fine with JOYSTICK_SIZE = 12.
Is there another configuration file that I need to change, to get the HID message correctly formatted? I'm thinking that this might be the type of problem beause X & Y do not behave correctly,
I've hit the limits of my detective abilities at this stage, so any guidance would be very gratefully recieved!
I am using Teesy 3.2 with Teensyduino 1.53. I have changed all 4 instances of JOYSTICK_SIZE in usb_desc.h to 64, but have not changed any other configuration files.
After many hours of struggles, I have gone back to the ExtremeJoystickTest.ino to take all the rest of my application out of the picture, and have further simplified the test, by putting fixed values in to the various functions
// place fixed values
Joystick.X(512);
Joystick.Y(512);
Joystick.Z(512 * 64);
Joystick.Xrotate(512 * 64);
Joystick.Yrotate(512 * 64);
Joystick.Zrotate(512 * 64);
Joystick.slider(1, 512 * 64);
Joystick.slider(2, 512 * 64);
Joystick.slider(3, 512 * 64);
Joystick.slider(4, 512 * 64);
Joystick.slider(5, 512 * 64);
Joystick.slider(6, 512 * 64);
Joystick.slider(7, 512 * 64);
Joystick.slider(8, 512 * 64);
You will see that I have got small mid-range values in for X & Y. This is because from an earlier test, I found that 16bit values over-ranged them, and I had to put 10bit values in to be able to observe anything.
On windows device manager, I can see X&Y set at mid range with 512 as input, followed by Joystick.Z, XRot, YRot & ZRot at mid range with 32768 as input values. Two sliders are visible, but they show no value. The hat is rotating as expected, and the buttons are visible.
If I connect the teensy to a Debian computer, jstest-gsk shows no axis inputs at all, but the hat and buttons appear as expected.
Referring briefly back to my own application, this worked fine with JOYSTICK_SIZE = 12.
Is there another configuration file that I need to change, to get the HID message correctly formatted? I'm thinking that this might be the type of problem beause X & Y do not behave correctly,
I've hit the limits of my detective abilities at this stage, so any guidance would be very gratefully recieved!