Jump to content
The simFlight Network Forums
nooon

Autopause on a specific waypoint

Recommended Posts

Hi,

Could FSUIPC potentially do that : Automatically pause FS on (let's say when entering within x nm) a specific waypoint ?

Or maybe some FSUIPC-dependant add-on already does that ?

Sorry in advance if this has been already asked here...did a search but nothing.

thanks

-Jerome

Share this post


Link to post
Share on other sites

Could FSUIPC potentially do that : Automatically pause FS on (let's say when entering within x nm) a specific waypoint ?

That's really more a job for an application program. FSUIPC is just passing information back and forth in the main. it really doesn't know what much of it is.

Or maybe some FSUIPC-dependant add-on already does that ?

Possibly. Sorry, I don't know. maybe someone else can help here. I'm a Project Magenta user so my waypoints are in the PM CDU, in any case. I don't think I've ever used the FS flight planner or its GPSs.

Regards,

Pete

Share this post


Link to post
Share on other sites

For whom interested, I just found a file in the AVSIM library, by the excellent José Oliveira

iwillbeback.zip http://library.avsim.net/download.php?DLID=24428

It does almost what i need (it's pausing based on the flight distance).

Not sure about the compatibility with FS9 however...I need to test.

-Jerome

Update : Just found exactly what I need ;)

fspauser_11.zip http://library.avsim.net/download.php?DLID=31759

Next time for sure i'll search better before asking for already existing solutions !

Share this post


Link to post
Share on other sites

Here's a way to do it using my FSUIPC compiler/interpreter

This will work if you hit control X. Assume you want to pause 10,000 metres before you get to waypoint 7.

Wait until you've crossed waypoint 6.

Wait until you're within 10,000 metres of the next waypoint

Pause

Coded as follows:

int current_waypoint at 0x616C;

int pause_control at 0x0262;

int wp_distance at 0x60EC;

key(Control,'X'){

while(current_waypoint < 6)

wait(1);

while(wp_distance < 10000)

wait(1);

pause_control = 1;

}

I now have this application ready for release, but do not have access to a website. If anyone wants to host it, please let me know.

JohnS

Share this post


Link to post
Share on other sites

I now have this application ready for release, but do not have access to a website. If anyone wants to host it, please let me know.

Maybe it would be good on the http://www.schiratti.com/dowson site with all the other FSUIPC stuff? Make sure it is credited to you of course! :wink:

If that appeals, write to enrico@schiratti.com. If not, I'll understand. Your choice entirely.

Regards,

Pete

Share this post


Link to post
Share on other sites

Pete

Thanks. Will do. I'll send it Monday morning.

p.s. The code I supplied has a bug, as some of the variables are two bytes long. They should have been 'shortint' s.

Have a nice weekend. I hear it's snowing in the UK.

Share this post


Link to post
Share on other sites

Thanks. Will do. I'll send it Monday morning.

Best ask him first, today. And so he expects it. I think he's away next week some time -- maybe not till Wednesday though.

Regards,

Pete

Share this post


Link to post
Share on other sites

JohnS737

Wow, you made it with 6 lines of code... I should have a look at the interpreter/compiler topic, it seems interresting ...

Anyway, thanks for this contribution, this is much appreciated !

Falling asleep in the cockpit, in the middle of the ocean, will not be a problem anymore :)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • 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.