Jump to content
The simFlight Network Forums

alioth

Members
  • Posts

    11
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Madrid

alioth's Achievements

Newbie

Newbie (1/14)

  • Dedicated Rare
  • Collaborator Rare
  • First Post Rare
  • Conversation Starter Rare
  • Week One Done Rare

Recent Badges

0

Reputation

  1. The aircraft is A2A Comanche. The gps is Reality xp gtn 750 The comanche has its own circuit breakers system, with a custom Lvar per circuit breaker. I have hardware built them and are functional in my cockpit. The target is when the custom L:var of nav/com1 radio circuit breaker triggers, my lua script triggers the PARTIAL PANEL COMM and PARTIAL PANEL NAV var so that section in gtn 750 stops working. With the default avionics in a2a comanche circuit breakers works fine, but with the rxp gtn 750 I have to set those simconnect vars to make this circuit breaker functional. There are other functions in the rxp 750 which use custom l:vars like screen brightness. And I have interfaced with my night/day switch in the panel to use two bright levels. Or gps signal, which is a L:var too. No problem with them. You can see them, page 8: https://reality-xp.com/support/trainingcenter/userguides/manuals/Reality XP GTN User's Manual (FltSim).pdf Sorry, what is "a/c"? Thanks. Arturo
  2. Thanks for the quick answer (even that was not what I wanted to read...) So I need a way to link a L:var to a simconnect var. I will look for it.. EDIT: you write while I was answering. Thanks!
  3. Im trying to use some functions with Reality XP gtn 750 software. Reality xp software says to use these vars to use failures: When I use the p3d v5.2 failures menu in the image the GTN does what is expected. But when I try to operate it through a lua script (I want to link these failures to functional circuit breakers) I don't get any result. I have tried with 0B68, 3BD6, and 3BD6 offsets. am I trying to use the correct offsets? Thanks. Arturo.
  4. about 8.33 addons, do you mean navaids or planes? I know flight1 gtn750 gps can be switched between 25 and 8.33 spacing. At least in my flight1tech g750 can be done in the settings menu. When I built my navcom2 radio with real faceplates but own hardware inside, I put 6 digits 7 segments displays waiting for this moment. So I will soon recode the radios for 8.33
  5. I built a Stec-30 for my a2a piper comanche home cockpit simulator. you can see an old demo here: https://www.youtube.com/watch?v=dLYafAxSRM0 The LVars you need to operate it are: ApMaster ApModePushSwitch ApTurnKnob ApDisconnectSwitch ApAltSwitch Arturo.
  6. Pete, you are faster than mi processor! P3D v4.3 Processor is i7 2700k 4 cores, 8 threads with hyperthreading enabled. The last time I edited something about AffinityMask was in FSX times. So It should be as default in p3d. For your words I feel that my thoughts about the delays make sense. And everything is working as it should. So, I am happy for this. True. But If I can make something just in case fps drops for something like Orbx.. or worse.. Orbx + heavy weather.. I have found the offset, 0x0274. I will try the second solution. Thanks. Arturo.
  7. This is not really a big problem. I am more looking for adviced.. if it is posible. I am using an arduino to control yoke, throttle, rudder, brake axis. I send the data to lua script, that uses ipc.control commands to drive them. I use regular intervals of time to send the data, if there is value change ( 50ms for yoke, 100ms for throttle...). There is no problem while fps in simulator is above aprox 20-25fps If fps falls below 20fps, the axis movement start to work with delay. I supose the serial buffer is being full and it is fps dependent. I think in some solutions: 1.- Use bigger delays in arduino code always. Somthing that works from 10fps... so never will be a problem. But I will have low axis update frequency . 2.- Send the actual framerate value to arduino, an make the delays dependent on this value. Is there an fps offset I can send to arduino? I cant find it in the offsets list. 3.- use arduino as a windows joystick, so I don't have to send any value. Only setup the axis in the simulator. What route should I follow? What people usually do? 🙂 Thanks in advanced. Arturo.
  8. This was my thought, but I wanted to understand what was happening. Now is perfectly clear. I will use fixed length, and I now understand the needed of some line discarding invalid inputs. Even with fixed length I supose it is a good idea. Thank you so much. Arturo.
  9. Thanks for the answer and sorry for my mistake 😕 (oh my god). But, I have problems yet. I have installed a serial monitor software, as you suggested in some thread (Now I dont know how I was living without it). The bytes sent from Arduino in a typical command is something like this: 41 3D 30 30 30 37 39 0D 0A A=00079.. So, the "\n" are the 0x0D + 0x0A bytes. With this command format, if I use it works fine all the time. But, If I use As I know, it should work the same way. And It works most of the time. But something like 1/100 I receive a diferent format string and my functions fails to isolate the key and the value. Can be related to event.com function? With " 9 , 9" works always fine.. Thanks. EDIT: I have looged the string received from event.com and I get this:
  10. Hi. I am trying to interface Arduino with p3dv4 Sending data from lua script to Arduino is fine. And no problem receiving data in arduino side. To read data coming from arduino in lua script, I really like the event.com concept. It makes (or should) things easy. The idea is to isolate a string between '/n' or whatever character, so I can manage a string as a complete comand. The comands I send from arduino have the format "A=xxxxx/n", and I have manage to isolate the key 'A' and the number xxxxx But I having problems to isolate the "A=xxxxx" and not being mixed with the command before or behind. This is an example code: I am sending the data from arduino every 500 milisecs. Quite slow, to be sure no problems with buffers.. (I think). I have test '/n', 13, even other characters like 'X', space. But the string comes truncated. I see it with ipc.display (strng) Only works if using I don't know the reason. Is '/n' two bytes and then total lenght is 9 perhaps..? With the 9, I see in the ipc.display window a blank line, and in the next line the complete code. So, it works in this way. I can use this method if always sending the same commands lenght... But I would like to use diferent string lengths with "term" parameter working. What I am doing wrong? 😕 thanks in advance Arturo.
×
×
  • 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.