activate to true, or using the activate service during runtime. In that situation, it is possible to:activate boolean property allows to make the aircrafts moving alongside their respective flightplans. The period duration property specifies the period on which their position is updated[1]
<application name="tacticalenv"> <module name="tacticalenv"> <moduleProperty key="scenario" value="tacticalEnv2.xml" /> <moduleProperty key="activate" value="true" /> <moduleProperty key="period" value="500ms" /> </module> </application>It is also possible to activate / de-activate at any moment using the
activate service. For example:ServiceInstance activateService = module.getService("http://dassault-aviation.com/tacticalenv", "activate"); activateService.setDataBooleanValue("activate", true); activateService.invoke();
period. Ther move will be performed alongside the flightplan specified by the flightplan field of the aircraft, and to the waypoint specified by the nextWaypoint field.nextWaypointspeedNorth and speedEast fields of the aircraft.
period, the the aircrafts service will be invoked by the tacticalEnv Application, with an update to the following fields:latitude and longitude according to the aircraft new positionspeedEast and speedNorth because the aircraft follow the flightplanaircrafts service will be invoked by the tacticalEnv Application, with an update to the following field:nextWaypoint to specify the next waypoint to follownextWaypoint service will also be invoked by the tacticalEnv Application, with an update to the following field:aircraft to specify the aircraft namewaypoint to specify the waypoint that the aircraft will now follow[2]
nextWaypointaircraftsModel service will also be updated accordingly.nextWaypoint is not necessarily the first waypoint in the flightplan. For example:
goto service allows to specify that a waypoint must go to a waypoint. It will change the flightplan and the nextWaypoint fields of an aircraft.<event name="goto"> <data name="mode" type="gotoMode" /> <data name="aircraft" type="string" /> <data name="flightplan" type="string" /> <data name="waypoint" type="string" /> </event>
newWaypoint service:<event name="newWaypoint"> <data name="flightplan" type="string" /> <data name="waypoint" type="string" /> <data name="type" type="string" /> <data name="positionType" type="waypointPosition" /> <data name="index" type="int" /> <data name="latitude" type="coordinate" /> <data name="longitude" type="coordinate" /> </event>If the
flightplan data is empty, then the waypoint will be created but not added in a flightplan, else it will be added in the specified flightplan. The positionType attribute allows to specify if the waypoint will just be added at the end of the flightplan (if its value is LAST), or at a specified index in the flightplan (if its value is INDEX). In this last case, the index data specifies the index of the waypoint in the flightplan.
deleteWaypoint service:<event name="deleteWaypoint"> <data name="flightplan" type="string" /> <data name="waypoint" type="string" /> </event>
Copyright 2017-2020 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence