Advertisement
Yanes

FG-Post

Oct 14th, 2016
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.43 KB | None | 0 0
  1. Hi every body ,
  2.  
  3. I was trying to post a new thread to the "Board index ‹ FlightGear ‹ Development ‹ Aircraft ‹ Systems" at least 5 times
  4. with no luck !
  5. I don't know that's due to a recent forum scripts modification or there is a software bug the raw contents of the post was
  6.  
  7. [code]
  8. Hi all FG'ers
  9. I hope you are all fine ,
  10. In the process of developping the Su-27 fuel system and by reading the wiki articles and other topics
  11. I did this :
  12. [code]
  13. <?xml version="1.0"?>
  14.  
  15.  
  16. <system name="Fuel">
  17. <!-- tank[1] collector tank connected to the engine fuel pump,
  18. tank[0], tank[2],tank[3] and tank[4] feeds the collector through valves.
  19. Negative Gs (<-0.5g) cuts the supply to the collector tanks -->
  20.  
  21. <property value="1">propulsion/tank[0]/collector-valve</property>
  22. <property value="1">propulsion/tank[2]/collector-valve</property>
  23. <property value="1">propulsion/tank[3]/collector-valve</property>
  24. <property value="1">propulsion/tank[4]/collector-valve</property>
  25.  
  26.  
  27. <channel name="Fuel pumping">
  28.  
  29. <switch>
  30. <!-- Tank[0] to Collector tank[1] -->
  31. <default value="-1"/>
  32. <test logic="OR" value="0">
  33. propulsion/tank[0]/collector-valve EQ 0
  34. propulsion/tank[0]/contents-lbs LE 0
  35. propulsion/tank[1]/contents-lbs GE 9170.23 <!-- 1 lb below capacity -->
  36. accelerations/Nz LE -0.5
  37. </test>
  38. <output>propulsion/tank[0]/external-flow-rate-pps</output>
  39. </switch>
  40.  
  41. <switch>
  42. <!-- Tank[2] to Collector tank[1] -->
  43. <default value="-1"/>
  44. <test logic="OR" value="0">
  45. propulsion/tank[2]/collector-valve EQ 0
  46. propulsion/tank[2]/contents-lbs LE 0
  47. propulsion/tank[1]/contents-lbs GE 9170.23 <!-- 1 lb below capacity -->
  48. accelerations/Nz LE -0.5
  49. </test>
  50. <output>propulsion/tank[2]/external-flow-rate-pps</output>
  51. </switch>
  52.  
  53. <switch>
  54. <!-- Tank[3] to Collector tank[1] -->
  55. <default value="-1"/>
  56. <test logic="OR" value="0">
  57. propulsion/tank[3]/collector-valve EQ 0
  58. propulsion/tank[3]/contents-lbs LE 0
  59. propulsion/tank[1]/contents-lbs GE 9170.23 <!-- 1 lb below capacity -->
  60. accelerations/Nz LE -0.5
  61. </test>
  62. <output>propulsion/tank[3]/external-flow-rate-pps</output>
  63. </switch>
  64.  
  65. <switch>
  66. <!-- Tank[4] to Collector tank[1] -->
  67. <default value="-1"/>
  68. <test logic="OR" value="0">
  69. propulsion/tank[4]/collector-valve EQ 0
  70. propulsion/tank[4]/contents-lbs LE 0
  71. propulsion/tank[1]/contents-lbs GE 9170.23 <!-- 1 lb below capacity -->
  72. accelerations/Nz LE -0.5
  73. </test>
  74. <output>propulsion/tank[4]/external-flow-rate-pps</output>
  75. </switch>
  76.  
  77. <summer>
  78. <input>-propulsion/tank[0]/external-flow-rate-pps</input>
  79. <input>-propulsion/tank[2]/external-flow-rate-pps</input>
  80. <input>-propulsion/tank[3]/external-flow-rate-pps</input>
  81. <input>-propulsion/tank[4]/external-flow-rate-pps</input>
  82. <output>propulsion/tank[1]/external-flow-rate-pps</output>
  83. </summer>
  84.  
  85. </channel>
  86.  
  87. </system>
  88.  
  89. [/code]
  90.  
  91. but when including it as system in the aircraft's fdm file , I see the following oputput in the console :
  92. [quote]
  93. [i]Failed to tie property fcs/ to object methods
  94. Failed to tie property fcs/ to object methods
  95. Failed to tie property fcs/ to object methods
  96. Failed to tie property fcs/ to object methods[/i]
  97. [/quote]
  98.  
  99. so what's happening , I can't figure out the cause of this warning ,
  100.  
  101. and actually :wink: I have some other issues with this :
  102. [b][u]One : [/u][/b]
  103. the aircraft has the following fuel tanks config :
  104. [img]http://i.imgur.com/WNLcAyB.jpg[/img]
  105. with
  106. [quote]
  107.  
  108. −tank 1 : 3180 kg (7010.70 lbs) : forward integral fuel tank
  109. −tank 2 : 4160 kg (9171.23 lbs) : centre-section integral fuel tank
  110. −tank 3 : 1060 kg (1168.45 lbs *2 wing tanks) : wings integral fuel tanks
  111. −tank 4 : 1000 kg (1168.45 lbs) :Rear fuselage tank
  112. ====> TOTAL - 9400 kg.
  113. (that's about 12000L with an average kerosene density of 0.785kg/dm³)
  114. [/quote]
  115. I'm stil far from writing an accurate realistic system beacause of the complicated consumption sequence which is :
  116. [quote]
  117. − 45% from the tank 1.
  118. − empty tank 4.
  119. − empty tank 1.
  120. − 15% from tank 2.
  121. − empty tank 3.
  122. − empty tank 2
  123. [/quote]
  124. That's of course is to keep the (well known Su-27) super-maneuvrability .
  125. so at startup tanks should be filled equally in percentage (the same % from each tank overall capacity , I set it to 50% ).
  126. Now the question is is this sequence implementable in FG ? (even with a spaghetti style code "I think it will be ,for sure :D :D ")
  127. [b][u]Two: [/u][/b]
  128. the fuel transfert between tanks starts immediatly as the simulation begins , I thinks with "/fdm-initialized"
  129. so can we bind it with a property that delay it until "/engine[x]/running" for example ?
  130. this should be more realistic and the current behaviour is totally incorrect .
  131. so, that's it , Any help or advice is appreciated ,
  132. Thanks in advance ,
  133. Yanes .
  134. [/code]
  135.  
  136. It reports an SQL error so this may be serious :twisted: since it [b][u]may [/u][/b]be related to the database security .
  137. the error message page source is :
  138. [code]
  139.  
  140. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"><head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><title>General Error</title><style type="text/css">
  141. /* <![CDATA[ */
  142. * { margin: 0; padding: 0; } html { font-size: 100%; height: 100%; margin-bottom: 1px; background-color: #E4EDF0; } body { font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif; color: #536482; background: #E4EDF0; font-size: 62.5%; margin: 0; } a:link, a:active, a:visited { color: #006699; text-decoration: none; } a:hover { color: #DD6900; text-decoration: underline; } #wrap { padding: 0 20px 15px 20px; min-width: 615px; } #page-header { text-align: right; height: 40px; } #page-footer { clear: both; font-size: 1em; text-align: center; } .panel { margin: 4px 0; background-color: #FFFFFF; border: solid 1px #A9B8C2; } #errorpage #page-header a { font-weight: bold; line-height: 6em; } #errorpage #content { padding: 10px; } #errorpage #content h1 { line-height: 1.2em; margin-bottom: 0; color: #DF075C; } #errorpage #content div { margin-top: 20px; margin-bottom: 5px; border-bottom: 1px solid #CCCCCC; padding-bottom: 5px; color: #333333; font: bold 1.2em "Lucida Grande", Arial, Helvetica, sans-serif; text-decoration: none; line-height: 120%; text-align: left; }
  143. /* ]]> */
  144. </style></head><body id="errorpage"><div id="wrap"> <div id="page-header"> <a href="./">Return to the index page</a> </div> <div id="acp"> <div class="panel"> <div id="content"> <h1>General Error</h1> <div>SQL ERROR [ mysql4 ]<br /><br />Incorrect string value: '\xE2\x88\x92tan...' for column 'post_text' at row 1 [1366]<br /><br />An SQL error occurred while fetching this page. Please contact the <a href="mailto:flightge@flightgear.org">Board Administrator</a> if this problem persists.</div><p>Please notify the board administrator or webmaster: <a href="mailto:flightge@flightgear.org">flightge@flightgear.org</a></p> </div> </div> </div> <div id="page-footer"> Powered by <a href="https://www.phpbb.com/">phpBB</a>&reg; Forum Software &copy; phpBB Group </div></div></body></html>
  145. [/code]
  146.  
  147. Please Mods and Admin to test this and react ASAP ,
  148.  
  149. Regards , Yanes ,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement