Jump to content

XPJavelin

Members
  • Content count

    44
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by XPJavelin

  1. XPJavelin

    Speedy Copilot

    Hello captains, I wanted to present you my Lua Script used as copilot in the 737. I wanted a very robust and simple solution, and so far the Lua script has proven to be reliable. While there is some limitations stated in the PDF manual I have written for you, it's a great help not to fly alone and have a very simple but efficient first officer ! All the best, and please let me speak about Speedy Copilot ! ------------------------------------------- What it Speedy Copilot ? Speedy Copilot makes for you the steps normally done by the first officer and pilot monitoring, when you are pilot flying and captain of a Boeing 737. Speedy copilot is intended for the IXEG 737 (version 1.21 and above). It was tested and works with X-plane 11.20 and IXEG 1.21. It is not very realistic to do all the steps required in the procedures on your own. The Flight Crew Operating Manual makes a clear separation between actions from the left hand seat and the right hand seat. So we'd like to have the right hand actions (F/O, PM) done for us in reaction to the phase of flight and to left seat actions (CPT, PF). Several options exist to have a virtual copilot flying with you In X-Plane. But they might be technically complex, challenging to maintain, or require payware softwares. The intent was to provide a simple solution! We have made a transcript from the FCOM into a Lua script for the IXEG 737. We have made the transcription of the following procedures : Preflight procedure (triggered by the left hand side oxygen mask test) Before start (triggered by the beacon to ON) Before taxi (trigger by both engine generators to ON) Runway Entry procedure (including TCAS control, triggered by left outboard landing light) Take off run : gear and flaps retraction schedule (automatic trigger per rate and speed) Flight 100 and climbing items (automatic trigger per captain altitude) Flight 100 and descending items (automatic trigger per captain altitude) Approach, flaps extension schedule (automatic trigger per altitude and speed) Go around (reversion to Take Off procedure above) (automatic trigger at positive rate) After landing procedure (triggered by speedbrake down on ground) Apron entry (lights and doors) (triggered by runway turnoff lights OFF) Shutdown procedure until turn around state (beacon to OFF) The procedures are either manually triggered or automatically called. The Copilot is not calling the checklist. The copilot is doing the procedure. DOWNLOAD (Version 2.15 from 2018-06-17) [server1] [server 2] : Extract IXEG_proc.lua in ..\X-Plane 11\Resources\plugins\FlyWithLua\Scripts Don't forget to read the manual ! Speedy Copilot.pdf
  2. XPJavelin

    Speedy Copilot

    I am looking for something simple in my code. It was very convenient to read the FCOM and just translate in a few command lines, in a very straighforward way. I am not sure I am ready to sacrifice simplicity for human delay of actions. I like that way of doing however. I will think about it. In the mean time, I was thinking of implementing a GUI menu to set options (F30 of F40, with or without APU...)
  3. XPJavelin

    Speedy Copilot

    The first thing I can say reviewing your code,you're not lazy !
  4. XPJavelin

    Speedy Copilot

    thanks @jfjoubert,I will investigate your work, in the mean time, I was working on a revision of my script to include after landing flow with and without APU. I also added altitude constraint for flaps retraction, compatible with the go around triggers, and runway Entry procedure is triggered by left inboard landing light instead of left outboard. Both as suggested by @blocks_off
  5. XPJavelin

    Speedy Copilot

    Mmm Well said.
  6. XPJavelin

    Speedy Copilot

    NOTE : to declutter the code you can transform if os.clock() > r_trigger_start_time +1 then w_acft_flap = 0.5 end into if os.clock() > r_trigger_start_time +1 then w_acft_flap = 0.5 end
  7. XPJavelin

    Speedy Copilot

    So we have a winner here
  8. XPJavelin

    Speedy Copilot

    Ok, I see that... It's clever
  9. XPJavelin

    Speedy Copilot

    Hello ! I am very sorry, but I am still not able to view the file in my browser, while I have no problem to watch other media usually... Thank you, however,for taking part in this discussion.
  10. XPJavelin

    Speedy Copilot

    Hi ahah !;D I like the randomness idea too. I found a way to pausing a LUA script but it was pausing the whole simulator (simulator freeze, waiting for the Lua with os.clock function to be finished) , therefore, not interesting at all. We cannot pause the whole aircraft while flying,it would looks like a giant stutter ! When you use this function, are your sure,that you don't produce that giant stutter ? (I rejected that method). My attempt used a function calling sleep(1) for a pause of 1second : function sleep(n) local t = os.clock() while os.clock() - t <= n do -- nothing end end -- function sleep is dissused because it pauses the whole simulator ! I have investigated the Internet and found the function pause was not available in Lua (except maybe with the last version of it). Not sure it should clutter the code extremely : if you write the code into a function and call it - like sleep(1) - , it is a one-liner ! If you find an elegant solution, you are very welcome to share it here. (And just as a reminder the current version is still 2.15, change log attached.) Speedy Copilot_2.pdf
  11. XPJavelin

    Speedy Copilot

    I don't think there will be a problem, really, it is just that I did not tested it and can't say it will work. ;-)
  12. XPJavelin

    Speedy Copilot

    The after landing trigger was SPOILERS DOWN and, per FCOM, I prefer the F/O to handle the strobe switch on his side. However, it is perfectly understandable that you want to change your triggers to your liking and your own logic. You are very welcome to do that. Nice idea ! With Speedy Copilot 2.15, engine start switches are manually activated by you, for the start procedure. Then ,during after start flows (and in approach,later), tjeF/O switches them to CONTINUOUS. I just tested that,and it worked perfectly on my computer. Did you erase the previous versions of the script before copying the last version ? Also, close and restart X-Plane for and after the installation to erase any global variable values. I did not change the trigger in version 2.15 following your suggestion, because I made several tests with the current state of triggers for the after takeoff flow to ensure they are robust as is. The triggers are sensitive, because it has to work both for take off and go around. I remember fine tuning those takeoff triggers and it is not clear to me (without doing a series of tests) if the after takeoff sequence would keep safe and operationnal with your modification, but I hope so. So I reserve this modification for later so far. In the mean time, you are very welcome to modify the script on your computer of course. I welcome your ideas and suggestions. Thank you for your interest.
  13. XPJavelin

    Speedy Copilot

    The version 2.15 is now available on x-pilot.com and on my website. Per user request, Flaps 30 can be selected instead of Flaps 40 for landing. How to do that is documented in the PDF documentation. The version 2.15 has been tested on a typical flight profile with CRZ above FL100 and no sign of malfunctions was spotted throughout the different phases of flight but feel free to report any here. Happy flights !
  14. Version 2.2

    30 downloads

    What it Speedy Copilot ? Speedy Copilot makes for you the steps normally done by the first officer and pilot monitoring, when you are pilot flying and captain of a Boeing 737. Speedy copilot is intended for the IXEG 737 (version 1.21 and above). It was tested and works with X-plane 11.20 and IXEG 1.21 along Better Pushback and JAR GroundHandling. It is not very realistic to do all the steps required in the procedures on your own. The Flight Crew Operating Manual makes a clear separation between actions from the left hand seat and the right hand seat. So we'd like to have the right hand actions (F/O, PM) done for us in reaction to the phase of flight and to left seat actions (CPT, PF). Several options exist to have a virtual copilot flying with you In X-Plane. But they might be technically complex, challenging to maintain, or require payware softwares. The intent was to provide a simple solution! We have made a transcript from the FCOM into a Lua script for the IXEG 737. We have made the transcription of the following procedures : Preflight procedure (triggered by the left hand side oxygen mask test) Before start (triggered by the beacon to ON) Before taxi (trigger by both engine generators to ON) Before takeoff, securing the cabin (optionnal, triggered by strobe ON) Runway Entry procedure (including TCAS control, triggered by left outboard landing light) Take off run : gear and flaps retraction schedule (automatic trigger) Flight 100 and climbing items (automatic trigger) Flight 100 and descending items (automatic trigger) Approach, flaps extension schedule (automatic trigger with available selection of FLAPS 30 or FLAPS 40 configuration) Go around (automatic trigger upon positive rate) After landing procedure (triggered by speedbrake down on ground) Apron entry (lights and doors) (triggered by runway turnoff lights OFF) Shutdown procedure until turn around state (beacon to OFF) The procedures are either manually triggered or automatically called. The Copilot is not calling the checklist. The copilot is doing the procedure.  Additional features You can listen to the cabin PA and boarding music if PA receiver is activated on the left hand side Radio Management Panel. Cabin crew is handled by Speedy Copilot without pilot intervention according to phase of flight. In addition, the first officer pressure altimeter setting is linked to the captain's one. If you change the barometric settings, the F/O will synchronize his one. Installation Extract IXEG_proc.lua and the sound directory into ..\X-Plane 11\Resources\plugins\FlyWithLua\Scripts Don't forget to read the manual ! Where to discuss it ? You can discuss this file in the IXEG forum if you wish : Speedy Copilot_2.pdf
  15. XPJavelin

    Flight preparation

    Hi, I know a lot of simmers use Simbrief or PFPX butI don't. I do my route preparation on my own website for free. I like to do it this way. I did update today the OFP generated for the Boeing 737 (both classic and NG). I have kept at the moment the legacy OFP for classics and NG, but added the Boeing B737_CL_and_NG OFP. When you export in PDF or print the OFP selection from Open Office Calc, you have the result attached below (ofp.pdf). If you wish, you can download the ofp.ots (Open Document Template, made with Open Office) below, or generate it dynamically using my web site YART &nbsp;¡ Yet Another Route Tool !© in Advanced mode. The principle is to follow the worklow suggested in the first tab of the spreedsheat and then export the OFP located in the last tab of the Calc document. Click on the signature standing on the OFP to add the handwritten notes to the OFP. Best regards. ofp.pdf ofp.ots ofp-notes.pdf
  16. XPJavelin

    Speedy Copilot

    I din't want the FO to arm speed brake because I am focussing on Pilot Monitoring on right hand seat. In the FCOM, landing procedure (NP 21.49), it is the Pilot Flying who "Set the speed brake lever to ARM"... I found it great the Captain PM to be in charge of it so I didn't try to add it.. Anyway, you can decide differently with your own SOP... That would be great, at the moment, I don't now how to store a data displayed in the CDU into a Lua variable. It is not an IXEG dataref... Instead I would be inclined to find a trigger that allow FLAPS 40 or FLAPS 30. The best way is to tell the copilot with a workaround like pushing a specific button below 6000 feet, he understands it will be one of the configurations instead of the other and then does : if planned_flaps == 40 then FLAPS = 1 end --flaps 40* if planned_flaps == 30 then FLAPS = 0.xx end --flaps 30* I have updated it to allow Flaps 30 on landing, it is ready and will be uploaded in v2.1 I have updated the documentation. But still have to test the new version 2.1 before uploading. Speedy Copilot_2.pdf
  17. XPJavelin

    Speedy Copilot

    Hi,yes the chronometer is left apart in my version 2.0. But the engine start swithes is solved, and the flap retraction altitude is a good idea... Did you use the version 2.0 as a basis? Because it is greatly improved in regard to previous versions 1.x... In theversion 2, my the FO handles the GRD/FLT switch without problem. The solution is to use the Lua function "set" instead of the "dataref" function (see fly_with_Lua documentation). For flaps 30, I didn't do that at that time.It is very easy to change FLAPS 40 for FLAPS 30,but it requires more code to create a situation for FLAPS 30 OR FLAPS 40. I am glad you like my work ! And try to improve it !! Just,be sure your work is based on 2.0...
  18. Speedy Copilot for IXEG 737 Classic View File What it Speedy Copilot ? Speedy Copilot makes for you the steps normally done by the first officer and pilot monitoring, when you are pilot flying and captain of a Boeing 737. Speedy copilot is intended for the IXEG 737 (version 1.21 and above). It was tested and works with X-plane 11.20 and IXEG 1.21 along Better Pushback and JAR GroundHandling. It is not very realistic to do all the steps required in the procedures on your own. The Flight Crew Operating Manual makes a clear separation between actions from the left hand seat and the right hand seat. So we'd like to have the right hand actions (F/O, PM) done for us in reaction to the phase of flight and to left seat actions (CPT, PF). Several options exist to have a virtual copilot flying with you In X-Plane. But they might be technically complex, challenging to maintain, or require payware softwares. The intent was to provide a simple solution! We have made a transcript from the FCOM into a Lua script for the IXEG 737. We have made the transcription of the following procedures : Preflight procedure (triggered by the left hand side oxygen mask test) Before start (triggered by the beacon to ON) Before taxi (trigger by both engine generators to ON) Before takeoff, securing the cabin (optionnal, triggered by strobe ON) Runway Entry procedure (including TCAS control, triggered by left outboard landing light) Take off run : gear and flaps retraction schedule (automatic trigger) Flight 100 and climbing items (automatic trigger) Flight 100 and descending items (automatic trigger) Approach, flaps extension schedule (automatic trigger with available selection of FLAPS 30 or FLAPS 40 configuration) Go around (automatic trigger upon positive rate) After landing procedure (triggered by speedbrake down on ground) Apron entry (lights and doors) (triggered by runway turnoff lights OFF) Shutdown procedure until turn around state (beacon to OFF) The procedures are either manually triggered or automatically called. The Copilot is not calling the checklist. The copilot is doing the procedure.  Additional features You can listen to the cabin PA and boarding music if PA receiver is activated on the left hand side Radio Management Panel. Cabin crew is handled by Speedy Copilot without pilot intervention according to phase of flight. In addition, the first officer pressure altimeter setting is linked to the captain's one. If you change the barometric settings, the F/O will synchronize his one. Installation Extract IXEG_proc.lua and the sound directory into ..\X-Plane 11\Resources\plugins\FlyWithLua\Scripts Don't forget to read the manual ! Where to discuss it ? You can discuss this file in the IXEG forum if you wish : Speedy Copilot_2.pdf Submitter XPJavelin Submitted 06/17/2018 Category Plugins and Utilities  
  19. XPJavelin

    Speedy Copilot

    Version 2.0 from 2018-06-16 Change log * v 2.0 : Engine start switches CONTINUOUS (after start and before landing) is now handled by the copilot, with the use of a different Lua function not conflicting with IXEG software * v 2.0 : Autobrake switch is now fully handled by the copilot, with the use of a different Lua function not conflicting with IXEG software * v 2.0 : Press. FLT - GRD switch is now handled by the F/O. * v 2.0 : Guarded switches (flt_control_A_guard, flt_control_B_guard, spoiler_A_guard, spoiler_B_guard, alt_flaps_guard, att_pwr_guard, stby_pwr_guard and bus_xfr_guard) now checked guarded by the F/O during preflight. * v 2.0 : The F/O sets his CDU to LEGS page as part of the before start flow, per FCOM. Speedy Copilot_2.pdf
  20. XPJavelin

    Speedy Copilot

    Version 1.3 from 2018-06-12 2130z Change log * v 1.2 : Sound set totally reworked for more clarity, including PA annoucement (only with PA receiver tuned) and copilot. [Done at work when the boss was not noticing ] * v 1.2 : When you set an altimeter setting, you hear the pilot telling you that he synchronized his baroaltimeter shortly after yours with "altimeter updated" * v 1.2 : Engine start switches bug which crashed the aircraft is now repaired (However, at that time, you'll have to do it yourself, I'm sorry) * v 1.2 : Autobrake switch differently handled, code speaking. (However, at that time, you'll have to do it yourself, I'm sorry) * v 1.2 : Code tweaking * v 1.2 : Reworked the logic for FL100 - it is no more mandatory to fly above FL100 in cruize to trigger subsequent flows. It remains mandatory to perform all the steps and procedures from the FCOM in the right order. The copilot cannot skip procedures, otherwise next procedures wont be triggered. * v 1.3 : Repaired the logic to trigger approach mode (was broken in version 1.2) It was tested in XP 11.20 and IXEG Classic 1.21, Better Pushback and JAR GroundHandling.
  21. XPJavelin

    Speedy Copilot

    Hi you should wait :). I am heading to my office for the day at the moment
  22. XPJavelin

    Speedy Copilot

    Hi ! Thank you for your time. And your interest. Yes it is mandatory to perform all the steps. The copilot cannot skip procedures, otherwise next procedures wont be triggered. I had also the space shooting and deactivated the engine start switches from the copilot tasks because manipulating them had that bad side effect on engine start, nevertheless prestart procedures are done or not. . I did not uploaded the corrected script at that time but it's identified and fixed in the next version. I have also removed the sound of the copilot stretching his muscles when entering the chu abin in the next version (was not very happy with it) but kept intentionnaly the other environnemental sounds. I recognize it was a quick recording and some sounds should be improved. When you set an altimeter setting, you hear the pilot telling you that he synchronized his baroaltimeter. for sure the quick and dirty" sync baro" should be replaced by a more appropriate sentence.
  23. XPJavelin

    Speedy Copilot

    Thank you very much of your interest. Of course I can listen to the comments and bug reports. I have made some minor bug removal,not uploaded to the server at this time. The main thing is I had trouble with some datarefs. I would have prefered sending custom commands, instead, sometimes, monitoring dataref in "writable" mode had some negative effects (the switch was not responding normally anymore, etc...). So far I have reached a state were I am happy with it, with the exception of engine start switches I has to remove from F/O responsability (e.g. moving them to readonly mode).... and some other switches less critical. I am doing currently the flight from the majestic scenery of Kerkira LGKR to LFMT, and it seems to be fine. Thank you again !
  24. XPJavelin

    Speedy Copilot

    I have corrected a few bugs. For instance this critical one : dataref("ENG1STARTER", "ixeg/733/engine/eng1_start_act", "readonly") dataref("ENG2STARTER", "ixeg/733/engine/eng2_start_act", "readonly") is now,on my computer version, readonly instead of writable because it is suspected to cause troubles at engine start (actuator not being able to move to the OFF position automatically). Therefore, engine start switches are now in the responsability of the captain with speedy copilot. I will upload at a later date the correction. In the mean time, if you encounter problems at startup (false behavior of switch or aircraft crash), I suggest you do the correction above..
×