Jump to content

Ground Radar plugin dev question


Bostjan Laba (1190497)

Recommended Posts

Bostjan Laba (1190497)

Hi,

I'm trying to make my own plugin for ES to extend some info on the departure lists. Works ok, but I have not found a method in Euroscope.h to SET ground state of the flight plan. I can GET it, but not set it. Same for clearance flag.

If you don't mind sharing info on how GR plugin does it and since GR has also custom ground states like ON FREQ, how is this status passed over the network to other controllers (using also GR plugin of course) to see this status. Thru Euroscope or external sync between all GR plugins?

Many thanks

Bostjan

Link to comment
Share on other sites

Juha Holopainen

Hi,

the ground states can be set by setting special scratchpad texts (See EuroScope documentation for the available ones). The data communication of the plugin for its custom states and stand assignments are documented in the developer guide, chapter 4. In short, the code does three steps for each change:

  1. get the current scratchpad text
  2. set the desired text (for example "CLEA" to set the clearance flag)
  3. set the original text (even if empty)
Link to comment
Share on other sites

Bostjan Laba (1190497)

Thank you kindly, Juha.

What about ON FREQ and LINEUP status? Also, please share dev docs link (for that chapter 4 you mentioned), the one I have is dated 2010.

Thanks again.

Bostjan

Link to comment
Share on other sites

Juha Holopainen

The documentation is contained in the plugin package, the download link is in the Ground Radar plugin 1.5 thread.

Link to comment
Share on other sites

Bostjan Laba (1190497)

Juha, hi,

thank you for this, found it all. 

One question though: I get the sending of status thru scratchpad. However, when some AC has set TAXI, seen in column of Ground Radar for example, when reading/getting Scratch pad, it's empty.

I would expect TXIN in the scratchpad.

Does it mean scratchpad "commands" for ground states are only working one way - to set them? I see I can get ground state from euroscope's getGroundState but that would not give me GR specific statuses...


Thank you

Bostjan

Link to comment
Share on other sites

Juha Holopainen

The plugin doesn't leave the special scratchpad texts in there (I don't think EuroScope does either), they are just set there momentarily to pass the message. The default ground states can be queried using GetGroundState but the plugin's custom states naturally won't be understood by EuroScope as being ground states. If you want to use those, you'll need to monitor data type scratchpad and ground state changes in OnFlightPlanControllerAssignedDataUpdate to maintain a list of currently set special states, and when checking for a ground state, first check that list for a possible custom state before checking GetGroundState.

Link to comment
Share on other sites

Bostjan Laba (1190497)

Juha, thanks, this works.

I'll try to figure out how to hold custom statuses per callsign etc, so I have full sync of departure list between my windows app and euroscope.

At the moment only issue left is reading or changing/setting runway on departure list. Do you have any info how this is done?

Thank you 

Bostjan

Link to comment
Share on other sites

Juha Holopainen

You can use the GetDepartureRwy function or parse the flight plan route string to get the runway. For setting the runway, the easy way is to use EuroScope's default runway selection popup. The hard way is to directly edit the flight plan route string. Starting the route string with "adep_icao_code/rwy_id" assigns the runway and "sid_id/rwy_id" both the runway and SID (editing the route string is what the respective EuroScope popups do).

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

When visiting this site, only cookies that are strictly necessary for you to use the website is being used, unless you have provided further consent. Read more in our Privacy Policy