• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

fs9gps map

Messages
371
Country
france
Hi,

I write a FMC/like that use 2 gps maps in the code.
On for the departure airport and one for the arrival airport.

I use the customdraw map instruction and I display one map at the time.

I initialize the position of the first map with :

Code:
<CustomDrawParam id="CustomDrawParam" Name="Latitude">
	<Value>(C:fs9gps:FlightPlanDepartureLatitude,radians)</Value>
</CustomDrawParam>
<CustomDrawParam id="CustomDrawParam" Name="Longitude">
             <Value>(C:fs9gps:FlightPlanDepartureLongitude,radians)</Value>
</CustomDrawParam>
And the position of the map is centered on the departure airport. all is ok



For the destination airport, I initialize the second map with :

Code:
<CustomDrawParam id="CustomDrawParam" Name="Latitude">
           <Value>(C:fs9gps:FlightPlanDestinationLatitude,radians)</Value>
</CustomDrawParam>
<CustomDrawParam id="CustomDrawParam" Name="Longitude">
	<Value>(C:fs9gps:FlightPlanDestinationLongitude,radians)</Value>
</CustomDrawParam>
And it is ok, the map is centered on the destination airport.

But, I want to use the rangerings macro. So I have added at each map this code :

Code:
<CustomDrawParam id="LayerRangeRings" Name="LayerRangeRings">
    <Value>(L:Show_Rings, bool)</Value>
</CustomDrawParam>
It is ok for the first map, but with the seconde map, the rangerings are centered to the departure airport, and not on the destination airport.

Do you know where is the solution for center the rangerings to the destination airport on the second map ?

thank you

I think that the problem is peharps the rangerings are automatically draw according the aircraft position and not the map position ......

Is there a solution ?

Francois
 
Last edited:
Yes.

but is a FMC of "FDD AVIONICS CORPORATION". Not a real FMC :)

No news about my problem of range rings ?

Thanks
 
I think that the problem is peharps the rangerings are automatically draw according the aircraft position and not the map position ......

Hi Francois,

As far as I can tell, you are correct that range rings are drawn centered only on (A:GPS POSITION LAT, radians) and (A:GPS POSITION LON, radians), regardless of where the center of the map has been defined using CustomDraw <Latitude> and <Longitude> or offset using <CenterX> and <CenterY>.

If that is indeed correct, the gps module will not do what you want, but maybe there is yet somebody out there that can think of a way.

Alternatively, I’m sure it would be possible to create a separate XML gauge, or add additional <Elements> in the FMC gauge you are creating, that draw circle objects – your own range rings - around any map point such as destination airport. Scaling and positioning would certainly be very big challenges.

Hope this helps.

Bob
 
Last edited:
Hi Bob,


Thank you for your answer.

I suspected it was a problem of this type.
It remains for me to draw the "arrival" circles myself.

as if I did not notice enough work :banghead:

Many thanks

Francois
 
Back
Top