Jump to content
The simFlight Network Forums

Recommended Posts

Posted

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

Posted

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

Posted

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 !

Posted

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

Posted

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

Posted

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.

Posted

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

Posted

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 :)

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.