Jump to content
The simFlight Network Forums

Recommended Posts

Posted

HI..

I sit whit an idea of creating an Auto throttle funktion that works, whitout the default one to be used whit add-ons...

What i have bee thinking about was a lua that could in some way use the default things to set a target speed and use the offset for throttles to increase or decrease to match the Target speed..

So far i know offset: 02BC is for the speed (IAS) and have a idea of using it as target Speed in some way. but what i can´t figure out is how to set a target speed as i know 02BC is the speed indicator..

but i need something that set the target... mabe i dont know but use the AP SPD as target and use default inc or dec to addjust the Target speed...

another thing is should it run as a loop effect like the Displays or any other sugestions....?

Posted

What i have bee thinking about was a lua that could in some way use the default things to set a target speed and use the offset for throttles to increase or decrease to match the Target speed.

Yes. Of course programs like Project Magenta do that sort of thing, even from an outside process and even over a Network (as in my cockpit). So with Lua, in process with FS, it shouldn't be a problem.

You should also note that FSUIPC also already offers an experimental set of A/P and A/T controls of its own. I say "experimental" because they need tuning for different aircraft -- which I think you'd have to do too.

So far i know offset: 02BC is for the speed (IAS) and have a idea of using it as target Speed in some way. but what i can´t figure out is how to set a target speed as i know 02BC is the speed indicator..

No, 02BC is the measured IAS -- that cannot be the target speed, it is the actual speed. The target speed is one you set to try to attain. you can aither use the A/P target speed at offset 07E2, or set your own, held internally to your Lua. The A/P one has the advantage that you can use standard FS controls to change it. For a Lua variable you'd have to have some control (button, knob or key) to change it by Lua programming.

but i need something that set the target... mabe i dont know but use the AP SPD as target and use default inc or dec to addjust the Target speed...

Yes, that would be easiest.

another thing is should it run as a loop effect like the Displays or any other sugestions....?

You could operate it in a loop, or maybe using event.offset for those two offsets - IAS and Target speed, because you need to do something when either of them changes.

Note that you have to try to anticipate future IAS changes based on past ones, like a trend, otherwise you tend to overcontrol or undercontrol and the aircraft behaves badly. This is why it generally needs tuning for each different aircraft. And maybe different attitudes, climbing and descending.

It's interesting though very time consuming.

Regards

Pete

Posted

well yes i know it is a matter of adjusting to the actual aircraft type and so it was more a basic style that could be addjusted as i know, there have to be some indications as you say about how sensetive the throttles should move depending on the Aircraft type and how big the difference between the target speed and the actual speed.. but i think i have to let it stop for now and hope some one that have the knolege about how to program it shows up and think it could be fun as thats the hardest part for me i see...

But thanks pete for you time explaning some posibleties.. and i would continue if i ever think i would be able to make such a programing..

Posted

But thanks pete for you time explaning some posibleties.. and i would continue if i ever think i would be able to make such a programing..

It's not so bad. Why not take a look at some of the examples, both those supplied with FSUIPC and installed in your Modules\FSUIPC Documents folder, or those in the User Contributions sub-forum? I can help with programming questions when you get into it, short of writing it for you.

Regards

Pete

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.