TonyVier Posted January 17, 2019 Report Posted January 17, 2019 Hi, When using the vSpeed callout script listed below, you have to set the speedbugs yourself. My little script reads the V speed values from the CDU and sets the speedbugs for you. Just put my script in the same folder as the vSpeed script... 7 3 Quote
XPJavelin Posted January 29, 2019 Report Posted January 29, 2019 Great idea... I will not be able to use it without moidification with my Speedy Copilot, because I use the bugs differently for V1 and VR, but I will keep it not too far away to expriment.. Quote
TonyVier Posted January 29, 2019 Author Report Posted January 29, 2019 Just take what you want. :) The thing is to grab stuff form the CDU screen. Otherwise you can't access the values from the FMC, afaik. Quote
XPJavelin Posted January 29, 2019 Report Posted January 29, 2019 (edited) Yea I see that, it's marvellous ! You just opened my eyes ! Where did you get those [^u0020-u007F]+ ? And did you used dataref tool ? Edited January 29, 2019 by XPJavelin Quote
TonyVier Posted January 29, 2019 Author Report Posted January 29, 2019 It seems that if you read a value from the CDU, there are some non-ascii characters in it. That bit is code to filter them out. Quote
XPJavelin Posted January 29, 2019 Report Posted January 29, 2019 I have just included your AMAZING script into Speedy Copilot 737 on my local testing installation. With full reference to you of course. 1 Quote
TonyVier Posted January 29, 2019 Author Report Posted January 29, 2019 35 minutes ago, XPJavelin said: And did you used dataref tool ? The CDU lines are not visible in my dataref tool. But this post was very helpful Quote
XPJavelin Posted January 29, 2019 Report Posted January 29, 2019 1 minute ago, TonyVier said: The CDU lines are not visible in my dataref tool. But this post was very helpful Thanks for the tip ! Quote
TonyVier Posted January 29, 2019 Author Report Posted January 29, 2019 This one is also cool Says 1000 to go, if plane is 1000 ft from altitude on mcp. Thats what they do, i heard local thousand2go = load_WAV_file(SCRIPT_DIRECTORY .. "IXEG_Calls_Sounds/thousand2go.wav") local thou2go_played = false dataref("mcpap_a_ann", "ixeg/733/MCP/mcp_a_comm_ann","readonly") dataref("mcpap_b_ann", "ixeg/733/MCP/mcp_b_comm_ann","readonly") dataref("autoalt", "sim/cockpit2/autopilot/altitude_dial_ft","readonly") dataref("cptheight", "sim/cockpit2/gauges/indicators/altitude_ft_pilot","readonly") function Alt2go() if mcpap_a_ann == 1 or mcpap_b_ann == 1 then autoaltb = autoalt - 1020 autoaltt = autoalt + 1020 if (cptheight > autoaltb) and (cptheight < autoaltt) and not thou2go_played then thou2go_played = true autoalt_o = autoalt play_sound(thousand2go) end if thou2go_played and (autoalt ~= autoalt_o) and (math.abs(autoalt-autoalt_o) > 1900) then thou2go_played = false end end end do_often("Alt2go()") Quote
XPJavelin Posted January 29, 2019 Report Posted January 29, 2019 I have instead use the following equations : if calageV1 then TakeoffDecision = (calageV1 * 1.5) - 90 end if calageVR then TakeoffRotate = (calageVR * 1.5) - 90 end if calageV2 then TakeoffReference = (calageV2 * 1.5) - 90 end Quote
TonyVier Posted January 29, 2019 Author Report Posted January 29, 2019 1 minute ago, XPJavelin said: I have instead use the following equations : if calageV1 then TakeoffDecision = (calageV1 * 1.5) - 90 end if calageVR then TakeoffRotate = (calageVR * 1.5) - 90 end if calageV2 then TakeoffReference = (calageV2 * 1.5) - 90 end If it works, it works... Quote
TonyVier Posted January 29, 2019 Author Report Posted January 29, 2019 BTW, I am building a gui kind of thing, so you can get rid of the awful Flywihtlua menu, and just set your options from the sim window, similar like https://forums.x-plane.org/index.php?/files/file/49946-extended-radio-and-nav-stacks-lua-script-ils-presets/ Little button somewhere, which pops up a windows with settings... Quote
XPJavelin Posted January 30, 2019 Report Posted January 30, 2019 (edited) yeah, I have not spent time on an UI and instead elected to use the flywithlua menu and focuss on the functionnality. But I'd love to learn how to do it. Edited January 30, 2019 by XPJavelin Quote
blocks_off Posted January 31, 2019 Report Posted January 31, 2019 Interesting thread guys - thanks to all and esp. the OP for giving my brain another task to think about I'd had some ideas which need script to read CDU so I'll look when i next fly the IXEG. - Carl Quote
TonyVier Posted January 31, 2019 Author Report Posted January 31, 2019 (edited) Here is the mock-up gui for Speedy CoPilot attached. No co-pilot script needed however.... Just run the script and put your mouse in the bottom left corner. options-button-menu.zip Edited January 31, 2019 by TonyVier Edit 1 Quote
XPJavelin Posted February 2, 2019 Report Posted February 2, 2019 I have integrated it and now we have Speedy Copilot 5. It is a great contribution ! 1 Quote
Nolemming Posted March 10, 2021 Report Posted March 10, 2021 (edited) HI, the captain speed bugs always go to the position on the screenshot below. When I try to set them manually, the speed bugs always jump back to this position. I updated to the IXEG V1.3 and I'm using the latest version of FlyWithLua. Could that be the reason why the speed bugs don't work properly? How do I fix this or can I remove the automatic bug setting in a safe way? Edited March 11, 2021 by Nolemming Update after several tests Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.