Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.

Unclear about a few SDK functions


Brendan Chen 943434
 Share

Recommended Posts

Brendan Chen 943434
Posted
Posted

Hi all,

 

I've been looking at the SDK header in detail, and came to implement some functions, only to find that I can't figure out how to use the functions.

 

  • I realised there are functions from CAircraftFlightPlan cl[Mod - Happy Thoughts] that are called: GetArrivalRwy() and GetDepartureRwy(). But I couldn't figure out where and how I would set the departure or arrival runways for an aircraft in code?
  • When I select CSectorElement::GetComponentName(int Index) or CSectorElement::GetRunwayName(int Index), what is this 'Index'? Why is it only 0 and 1? What does 0 and 1 represent?
  • Is there an inbuilt function for STCA that I might be able to call when conflict arise? Or must I write the detection manually?
  • I would like to display the predicted track (with ETA and waypoint name), is there a function which will be able to automatically display that when called? Or the track will need to be manually coded?
  • Also I would like to create some UI interfaces with a scrollbar on the right, basically work like AddPopupList() function and AddListElement() function, except doing that for a custom-drawn UI widgets, how would that be implemented?
  • Finally, is there a function within the SDK which allows me to determine whether a certain point is within a region? Example would be whether an aircraft is inside a CTA or FIR? I've came across the function CSectorElement::GetPosition(), but not sure on whether the function will do what I've described...

 

Could someone please shed some light on these questions please?

 

Regards,

Brendan Chen

VATPRC Tech Support

You make the difference!

672A68079898-1_zps98cef54d.png

Link to comment
Share on other sites

Todor Atanasov 878664
Posted
Posted

- You can't, these two functions only get the data. In the next release you will be able to set the values.

- Because every Runway has two directions you have to specify which one you need, 0 or 1, depending on how they were defined in the sct file.

- No there is no STCA function for the plugins, SATCAS, TAAATS and EuroCat 2000 plugins all have their own custom STCA functions. So you have to build one own.

- You can simply use ES flight track and simply change it's tag item from ES.

- You have email about that.

- You have to make a custom function for that too, in Internet there are plenty of codes for determining if a point is inside a region.

Link to comment
Share on other sites

Brendan Chen 943434
Posted
Posted

Thanks for that Todor, will have a look through the example you sent.

 

I have just came across another 2 questions:

  • How can I bring up the flight plan dialogue box by code?
  • Also is there a way to access the ATIS information letter (e.g. A, B, C...)?

 

Thanks.

Brendan Chen

VATPRC Tech Support

You make the difference!

672A68079898-1_zps98cef54d.png

Link to comment
Share on other sites

  • 2 weeks later...
Gergely Csernak
Posted
Posted

You can use the CRadarScreen :: StartTagFunction to open the FP dialog. But no access to the ATIS letter at the moment.

Gergely.

EuroScope developer

Link to comment
Share on other sites

 Share