Hi,
may i know the paramter to set altitude of each waypoint in c3104.xml in scripts for C310 flight.
i felt "hydro/alt-agl-ft" parameter is correct for altitude set @ each waypoint.
eg:
<event name="Head to first waypoint">
<condition>position/h-agl-ft ge 800</condition>
<set name="ap/heading-setpoint-select" value="1">
<set name="ap/active-waypoint" value="1">
<set name="hydro/alt-agl-ft" value="5945">
</set></set></set></event>
<event name="Second waypoint">
<condition>position/h-agl-ft ge 1200</condition>
<set name="ap/heading-setpoint-select" value="1">
<set name="ap/active-waypoint" value="2">
<set name="hydro/alt-agl-ft" value="6945">
</set></set></set></event>
Kindly correct me if am wrong & thanks in advance.
Regards,
KrishnaRao Veeramachaneni.
We are eagerly waiting for answer of this question.. i appreciate helping hand to answer this issue.
There is no property names, "hydro/alt-agl-ft". In the script c3104.xml (as it is currently written in our JSBSim CVS repository) there is this line in the first event:
This sets the altitude setpoint. You would need to reset this property when the new waypoint is set. I don't know what the "hydro" prefix is on some of the properties. I don't have that in my version of the script.
I hope this helps. Let me know if you need more help, or ask further questions on the mailing list.
I appreciate Berndt firstly for the quick response.
Here am working on waypoint navigation.
Departure airport : denvar
Arrival airport : eagles
Am using the c3104.xml (Script) file with below configuration
<runscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nonamespaceschemalocation="http://jsbsim.sf.net/JSBSimScript.xsd" name="C172-01A takeoff run">
</runscript>
<use aircraft="c172x" initialize="denver">
<run start="0.0" end="5400" dt="0.02"></run></use>
<event name="Start engine">
<description>
Start engine and set initial heading and waypoints, turn on heading-hold mode.
</description>
<condition>simulation/sim-time-sec ge 0.25</condition></event>
<event name="Terminate">
<description>
When the aircraft arrives back at Ellington Field (fifth waypoint)
then terminate the simulation.
</description>
<condition>
guidance/wp-distance lt 100
ap/active-waypoint eq 10
</condition>
<set name="simulation/terminate" value="1">
<notify>
</notify></set></event>
Here issue is after second way-point, am unable to reach the third way point (using altitude of 9249 ft).
Reason: Tail Skid is happening & flight is crashing.
Can you help me out, to solve this problem.
Thanks in advance.
Regards,
KrishnaRao Veeramachaneni.
Ticket moved from /p/jsbsim/bugs/104/