Jump to content
The simFlight Network Forums

Thiago Duarte

new Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Thiago Duarte

  1. 17 hours ago, Pete Dowson said:

    I'm afraid I know nothing at all about MOBIFLIGHT.

    That sounds like that particular aircraft does its own thing, ignoring the built-in FS spoiler logic.

    No.  That cannot be if the FS spoiler logic is used. To start with, if you try to test on the ground then as soon as the value 4800 is passed the spoiler will fully deploy, just as they would when you land with armed spoilers. All that is different for spoilers compared to other flight controls is that the range 0 to 4799 does nothing.

    Note that even with your raw axis values you can calibrate spoilers in FSUIPC by writing the value to 3BB2 (or in fact any of the offsets 3BA8 to 3BC4).  Then FSUIPC will detect is as if it was a USB joystick interface, allowing you to calibrate it properly. Then you wouldn't need your formula.

    However, it sounds like that aircraft takes no notice of the FS spoiler. You need to find out (from documentation of the author) what you can use. Maybe you need to assign it directly to Axis_Spoiler_Set and not calibrate. That would deal with it assuming the aircraft logic traps the control directly, but then you'll need your formula applied.

    Pete

     

     

    Hello Pete, I come here to say that after days of research and effort to make the spoiler work with the Pontenciometro in the informed configuration, after your help I managed to solve my problem. I'm learning a lot with this challenge that is being the Aerosoft Airbus, every part I try to develop it preaches a joke to me, lol. I confess that until then I was unaware of the use of offset with fsuipc, and with this function as you showed me I had never used it. So after reading your help I started doing some tests and after many tries everything is perfect. Thank you very much.

    Thiago Duarte

  2. 15 hours ago, Pete Dowson said:

    That's normally done by calibrating the spoiler axis. Isn't your potentiometer seen as a joystick axis? If not, how are you reading it?

    The 4800 value for "arm" is a built-in FS/P3D value. You'd normally calibrate a region of the axis movement so that you can guarantee to set ARM when the lever is in the ARM detente. 

    I don't understand how your formula relates to the potentiometer input. What values do you get from that?

    If you are writing to 0BDC for flaps then one would expect Aerosoft to respect 0BD0 for the spoilers. If not, what are you supposed to use?

    Pete

     

     

    First, I appreciate the answer to my question, and I apologize for not asking a complete question. Let's do it now.
    Simulator: FSX
    Aircraft: Airbus Aerosoft A320
    Hardware Used for Integration: Arduino Mega 2560 + Potentiometer 10k
    Communication Software: Mobiflight

    In this configuration, I have no way to calibrate the spoiler directly in FSUIPC, because the Arduino is not recognized as a USB JOYSTICK. That's why I need to use MOBIFLIGHT.

    My potentiometer returns the value 13 - 1023 which using @ it returns the value 0 - 16383 which is used in OFFSET to interact with FSX.
    I have just sited an example that this same code works in another option, to reinforce that the Arduino + Potentiometer + Mobiflight + FSUIPC + FSX interaction are going well. In this case, the aforementioned formula took the value of the potentiometer and converted it to the range used in FSX, changing only the OFFSET to test with FLAP and everything went perfectly. Now when I return the offset to 0BD0 (SPOILER) I have no success. It appears that something is preventing it from extending and moving the spoiler lever. As I also said, this same code for the spoiler works on STANDARD FSX aircraft like Airbus and Boeing.

    I believe it has something to do with this range from 4800 to 5619, and when the potentiometer value goes through it, it must be going into the range of spoiler armed function and thus blocks the operation of the spoiler lever.

    Grateful for the attention.

    Thiago Duarte

  3. Hi, I'm trying to use a potentiometer to set spolier and flap values on the A320 Aerosoft n FSX. First I tried to SPOILER using the formula "Max(0, Min(16383, (@ - 16) * 16383 / (1023 - 16)))" In Mobiflight OFFSET. Used with offset "0BD0" for Spolier. Testing with Aerosoft A320 didn't work, but when switching aircraft like FSX's standard Boeing or Airbus it worked perfectly. Now this same formula used to actuate the FLAP in Airbus A320 Aerosoft changing only the OFFSET "0BDC" worked perfectly to actuate the flaps. Checking the documentation I see there is an instruction to use OFFSET "OBDO" "Spoilers control, 0 off, 4800 arm, then 5620 (7%) to 16383 (100% fully deployed)...". I don't know how to implement this code. I would be grateful if someone can help me.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.