Jump to content

aerostar

Members
  • Content Count

    413
  • Donations

    $0.00 
  • Joined

  • Last visited

Everything posted by aerostar

  1. Hi Mark, thank you thank you... I have replaced the AB_HDGSTEP_set with the AB_AP_ALTSTEP LVar and now it toggles and works good... now the only thing is when I toggle the HDG step it also toggles the ALT step as they are now sharing the same LVar... I think that means that I need to properly define the AB_HDGSTEP_set LVar as it's probably not being recognised, I created it. I thought by naming it and giving it a value outside the Function that would define it. I also changed the == to ~= Can I ask how I should define the LVar AB_HDGSTEP_set so that it is recognised and usable ? Thanks again, Ian
  2. Apologies for messing the Log was trying different things then editing my post... I have stripped out the unnecessary parts and this is the part that's not toggling/switching... I have posted the corresponding Log where it can be seen that on button flag 4 it always stays at ' AB_HDG_Step_10' I have also included the full Lua file attached... not very big. Here is the Lua file - AB_Triple_HDG.lua Ian
  3. Is there a way to make the Heading toggle between the 1 and 10 degree steps... in a Lua script ? I have tried but am not able, This is what I've tried...
  4. After failing to be able to use acceleration on my Heading rotary , I have tried to make it toggle between 1 deg steps and 10 deg steps by pressing the button on the rotary. It's for the Aerosoft Airbus and there is a script for toggling the ALT but not the HDG. Therefore I copied the ALT script and adjusted to toggle the HDG but can't get it to toggle. Here is the relevant section... much obliged if someone can help... AB_HDGSTEP_set function AB_HDG_Step_tog () var = ipc.readLvar("AB_HDGSTEP_set") if var == 1 then AB_HDG_Step_1 () else AB_HDG_Step_10 () end end function AB_HDG_Step_1 () LVarSet = ("AB_HDGSTEP_set") ipc.writeLvar(LVarSet, 0) Anim = ("AB_AP_HDG_Knob_Ani") ipc.writeLvar(Anim, 1) ipc.sleep(30) ipc.writeLvar(Anim, 0) end function AB_HDG_Step_10 () LVarSet = ("AB_HDGSTEP_set") ipc.writeLvar(LVarSet, 1) Anim = ("AB_AP_HDG_Knob_Ani") ipc.writeLvar(Anim, -1) ipc.sleep(30) ipc.writeLvar(Anim, 0) end ....and the log The button animation doesn't toggle either (as an indication) but does work both ways in/out if set manually in the script. AB_Triple_HDG.lua Everything else works great... press Twice for heading set mode and press longer for heading managed mode
  5. Hi Mark, thanks for replying... I have been trying to get the code to fit in with the existing but I am not making headway... I have also had another option sent to try but after multiple attempts of both and another trawl of the internet I am still not getting it. This has turned out to be a lot harder (for me) than I thought. I'll continue trying meantime but any further advice, help would be welcome..... Thanks again...
  6. On the AS A320 the rotaries are push/pull so I really need to free up the push button on my rotaries.... been looking for someone to make the speed accelerate for ages. It doesn't seem like it would be any kind of challenge for someone who has even a basic understanding of LUA and really would be great if it was already an option in LINDA and the LUA actions script.
  7. Yeah that works but on the AS A320 the rotaries are push/pull so I really need to free up the push button on my rotaries.... been looking for someone to make the speed accelerate for ages. It doesn't seem like it would be any kind of challenge for someone who has even a basic understanding of LUA and really would be great if it was already an option in LINDA and the LUA actions script. BTW thanks Brian for making me feel less lonely 🙂
  8. .... my latest attempt using "event.timer" but any iterations and many different tries later it still doesn't work Can't figure out how the event.timer is used in this... among other things
  9. .... my latest attempt using "event.timer" but any iterations and many different tries later it still doesn't work Can't figure out how the event.timer is used in this... among other things
  10. Trying to make the HDG rotary increase step from - 1 deg per click to 10 deg per click - automatically when turning the rotary after a set number of deg's have occured in a given time. Here is a sample of the LUA actions.lua script from LINDA website for the Aerosoft Airbus A320 that I've been trying to alter with no success (I am not a programmer). Can anyone help please...... This the original for HDG plus , there is also one for HDG plusfast but you need to manually trigger which one to select _________________________________________________________ function AB_HDG_plus () AB_hdgtrk = ipc.readLvar("AB_AP_HDGTRK") AB_drift = round(ipc.readLvar("AB_AP_HDGTRK")) if AB_hdgtrk == 0 then LVarSet = "AB_AP_HDG_Select" else LVarSet = "AB_AP_TRK_set" end LVarGet = round(ipc.readLvar(LVarSet)) AddVar = LVarGet + 1 if AddVar > 359 then AddVar = 0 end DspHDG(AddVar) ipc.writeLvar(LVarSet, AddVar) end Here is one of my inept attempts at altering it..... _______________________________________ function AB_HDG_plus () AB_hdgtrk = ipc.readLvar("AB_AP_HDGTRK") AB_drift = ipc.readLvar("AB_AP_HDGTRK") if AB_hdgtrk == 0 then LVarSet = "AB_AP_HDG_Select" else LVarSet = "AB_AP_TRK_set" end LVarGet = ipc.readLvar(LVarSet) if (LvarGet - val1) > 20 then AddVar = LVarGet + 10 else AddVar = LVarGet + 1 if AddVar > 359 then AddVar = 0 end --DspHDG(AddVar) ipc.writeLvar(LVarSet, AddVar) end val1 = LVarGet sleep(200) end event.flag(1, "AB_HDG_plus") _________________________________ My general idea is when the rotary turns, a reading is taken of the HDG degrees at that time then ie 200ms later a reading is taken again and if the difference is over ie 15 deg it sets the rotary to step 10deg per click instead of 1deg step per click. As soon as the sample is less than 15deg diff then it steps back to 1deg per click. This should be easy for someone with a bit of LUA knowledge to do (I think) Thanks for any help
  11. Trying to make the HDG rotary increase step from - 1 deg per click to 10 deg per click - automatically when turning the rotary after a set number of deg's have occured in a given time. Here is a sample of the LUA actions.lua script from LINDA website for the Aerosoft Airbus A320 that I've been trying to alter with no success (I am not a programmer). Can anyone help please...... This the original for HDG plus , there is also one for HDG plusfast but you need to manually trigger which one to select _________________________________________________________ function AB_HDG_plus () AB_hdgtrk = ipc.readLvar("AB_AP_HDGTRK") AB_drift = round(ipc.readLvar("AB_AP_HDGTRK")) if AB_hdgtrk == 0 then LVarSet = "AB_AP_HDG_Select" else LVarSet = "AB_AP_TRK_set" end LVarGet = round(ipc.readLvar(LVarSet)) AddVar = LVarGet + 1 if AddVar > 359 then AddVar = 0 end DspHDG(AddVar) ipc.writeLvar(LVarSet, AddVar) end Here is one of my inept attempts at altering it..... _______________________________________ function AB_HDG_plus () AB_hdgtrk = ipc.readLvar("AB_AP_HDGTRK") AB_drift = ipc.readLvar("AB_AP_HDGTRK") if AB_hdgtrk == 0 then LVarSet = "AB_AP_HDG_Select" else LVarSet = "AB_AP_TRK_set" end LVarGet = ipc.readLvar(LVarSet) if (LvarGet - val1) > 20 then AddVar = LVarGet + 10 else AddVar = LVarGet + 1 if AddVar > 359 then AddVar = 0 end --DspHDG(AddVar) ipc.writeLvar(LVarSet, AddVar) end val1 = LVarGet sleep(200) end event.flag(1, "AB_HDG_plus") _________________________________ My general idea is when the rotary turns, a reading is taken of the HDG degrees at that time then ie 200ms later a reading is taken again and if the difference is over ie 15 deg it sets the rotary to step 10deg per click instead of 1deg step per click. As soon as the sample is less than 15deg diff then it steps back to 1deg per click. This should be easy for someone with a bit of LUA knowledge to do (I think) Thanks for any help
  12. Thank you very much for your quick, interesting replys....
  13. Can anyone help us figure out what this is ?
  14. ...hey that's ok... probably is the better choice, just looking forward to it being released..
  15. I have had a plane or two that were very dark in the cockpit and it wasn't very pleasing after a while... I, personally would like the lighter colours. I don't think the indents being slightly out would matter too much, of course the proof is in the trying....
  16. Which icon, only see the Main UI icon.... have tried all
  17. I meant the Mini UI Tweaker in the SIM.... it has disappeared and I cant get it back..... there is no icon minimised in the the bottom bar for it, only for the Main UI
  18. I have exited out of the In-Sim UI tweaker interface..... -- How do I get it back.... ?
  19. Thank you FSW for having the wisdom to make this move.... at last a quality biz jet with good systems... can't wait for it and hopefully more to come.
  20. These are a large part of the www.flightradar24.com system. If you set one up in your location you can contact them and they may consider using your received data. I set one up using only a Dongle from Ebay for my own use, and it worked great. I followed an online tutorial to make a suitable antenna. It all cost peanuts. There are apps available to enable you to use it on a map on your mobile smartphone and free software for your PC..
  21. Wholeheartedly agree... a real top notch aircraft, shout outs to TFDI...
×
×
  • Create New...