Jump to content

Hantayo

Members
  • Posts

    5
  • Joined

  • Last visited

About Hantayo

  • Birthday 04/10/1963

Personal Information

  • Flight Simulators
    DCS World, Flightgear, Condor, IL-2
  • Location
    Ariège, France
  • Interests
    Mountains, mtb, computing
  1. Yep! I found after some hard researches something like this in an open and free mind : https://github.com/ServError/Thrustmaster_Warthog_Throttle_Alps_Slew_Mod/tree/main/firmware/TM Warthog Alps Slew Mod It's just that I wanted : understand this code.
  2. I am using minicore under the arduino ide for the atmega8. For compilation, an int must be added to the function void receiveEvent(int) https://forum.arduino.cc/t/invalid-conversion-from-void-to-void-int-when-using-wire-onreceiv/656205: IIRC the -fpermissive flag was added by an accident in the official Arduino core (or for testing), and now it's too late to remove it. -fpermissive will mute code that's not right, but may still compile. I've decided to leave out this flag for all my cores, You got an error? Fix your broken code! I send you the photo of my setup in PM
  3. thanks for the 'tester' code. I tested it with code F5Z9HOJJD4UNJ65.ino from your Instructables. And I still have a few questions. I connected the joystick outputs to A0 and A1 (23 and 24) of the Atmega8 and placed two 4.7kOhm pullup resistors on SDA(A5) and SCL(A4). In the serial console, I always have -15 displayed for x and y, regardless of the variations on the potentiometers. And even disconnecting the wires. I had noticed that the slave code didn't compile because you had to add 'int numBytes' for example for the receiveEvent function. Moreover, I had no display in the serial console of the values x_pos and y_pos, whereas for temp_x and temp_y yes (by adding Serial.print here and there). I don't understand tests 1, 3 and 4. According to what I read, the displayed result is necessarily 'PASS', since this is what is asked to write on the serial console, after writing on the I2C bus, whether writing takes place or not. In the code, I ran test 2 after test 3 and 4 to verify by unplugging the SDA and SCL cables. And we still get 'PASS' for tests 1, 3 and 4. I hope you don't get bored with all those programming questions on the DCS forum.
  4. It's when I look at the code for the Easypoint digital joystick and the number of pages it is, even without the comments, especially the whole part on the calibration of the joystick. Also in your comments on instructables in trades between master and slave. What I don't see appearing in the arduino code. This one seems a lot simpler to me than master-slave trading might make you think. There is no reference to the joystick push button. I'm not an expert in arduino programming, I don't master bit manipulation in avr-c but I just understand the meaning of the code. EasyPoint_Demo.ino
  5. Hi, I would like to start by saluting the work of #Deltaalphalima1. I watched the https://www.instructables.com/Thrustmaster-Warthog-Slew-Sensor-I2C-Upgrade/ tutorial. I'm trying to understand the I2C exchanges between the master throttle and the slave mini-joystick. I loaded the Arduino code from the slave and am currently testing it with a joystick salvaged from an old gamepad on an Atmega8 and an Arduino board as the master. It seems to me that the code provided for the slave simulating the I2C joystick is not complete. Would it be possible to have it complete? I look at the code made by Mike Hord from Sparkfun for the easypoint digital joystick and I think that there must indeed be a part missing from your code for the analog joystick.
×
×
  • Create New...