Skip to content

Commit 5f5f467

Browse files
authored
Edit J246 aircraft guidance properties (#1377)
1 parent ffcd1bd commit 5f5f467

File tree

3 files changed

+4
-70
lines changed

3 files changed

+4
-70
lines changed

aircraft/J246/Systems/J246GuidanceExecutive.xml

Lines changed: 2 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -162,71 +162,11 @@
162162

163163
<channel name="Orbital Parameters">
164164

165-
<fcs_function name="guidance/executive/semimajor-axis-length-ft">
166-
<description>
167-
This equation calculates the semimajor-axis length in feet. a = mu/(2*mu/r - v^2)
168-
</description>
169-
<function>
170-
<quotient>
171-
<p> guidance/executive/gm </p>
172-
<difference>
173-
<quotient>
174-
<product>
175-
<v> 2.0 </v>
176-
<p> guidance/executive/gm </p>
177-
</product>
178-
<p> position/radius-to-vehicle-ft </p>
179-
</quotient>
180-
<pow>
181-
<p> velocities/eci-velocity-mag-fps </p>
182-
<v> 2.0 </v>
183-
</pow>
184-
</difference>
185-
</quotient>
186-
</function>
187-
</fcs_function>
188-
189-
<fcs_function name="guidance/executive/eccentricity">
190-
<description>
191-
This equation calculates eccentricity. e = sqrt (1 - [ r v cos(gamma) ]^2 / {a * mu})
192-
</description>
193-
<function>
194-
<pow>
195-
<difference>
196-
<v> 1.0 </v>
197-
<quotient>
198-
<pow>
199-
<product>
200-
<property> position/radius-to-vehicle-ft </property>
201-
<property> velocities/eci-velocity-mag-fps </property>
202-
<cos>
203-
<property> flight-path/gamma-rad </property>
204-
</cos>
205-
</product>
206-
<v> 2.0 </v>
207-
</pow>
208-
<product>
209-
<p> guidance/executive/semimajor-axis-length-ft </p>
210-
<p> guidance/executive/gm </p>
211-
</product>
212-
</quotient>
213-
</difference>
214-
<v> 0.5 </v>
215-
</pow>
216-
</function>
217-
</fcs_function>
218-
219165
<fcs_function name="guidance/executive/apoapsis">
220166
<function>
221167
<quotient>
222168
<difference>
223-
<product>
224-
<property>guidance/executive/semimajor-axis-length-ft</property>
225-
<sum>
226-
<value>1</value>
227-
<property>guidance/executive/eccentricity</property>
228-
</sum>
229-
</product>
169+
<property>orbital/apoapsis-radius-ft</property>
230170
<property>inertial/sea-level-radius_ft</property>
231171
</difference>
232172
<value>5280</value>
@@ -238,13 +178,7 @@
238178
<function>
239179
<quotient>
240180
<difference>
241-
<product>
242-
<property>guidance/executive/semimajor-axis-length-ft</property>
243-
<difference>
244-
<value>1</value>
245-
<property>guidance/executive/eccentricity</property>
246-
</difference>
247-
</product>
181+
<property>orbital/periapsis-radius-ft</property>
248182
<property>inertial/sea-level-radius_ft</property>
249183
</difference>
250184
<value>5280</value>

scripts/J2460.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<property caption="ECI Velocity (fps): "> velocities/eci-velocity-mag-fps </property>
2727
<property caption="Orbital apogee (miles): "> guidance/executive/apoapsis </property>
2828
<property caption="Orbital perigee (miles): "> guidance/executive/periapsis </property>
29-
<property caption="Orbital eccentricity: "> guidance/executive/eccentricity </property>
29+
<property caption="Orbital eccentricity: "> orbital/eccentricity </property>
3030
<property caption="Altitude AGL (ft): "> position/h-agl-ft </property>
3131
<property caption="Alpha (deg): "> aero/alpha-deg </property>
3232
<property caption="Pitch rate cmd: "> guidance/executive/gravity-turn-pitch-rate-command </property>

scripts/J2461.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<property caption="ECI Velocity (fps): "> velocities/eci-velocity-mag-fps </property>
108108
<property caption="Orbital apogee (miles): "> guidance/executive/apoapsis </property>
109109
<property caption="Orbital perigee (miles): "> guidance/executive/periapsis </property>
110-
<property caption="Orbital eccentricity: "> guidance/executive/eccentricity </property>
110+
<property caption="Orbital eccentricity: "> orbital/eccentricity </property>
111111
<property caption="Altitude AGL (ft): "> position/h-agl-ft </property>
112112
<property caption="Alpha (deg): "> aero/alpha-deg </property>
113113
<property caption="Pitch rate cmd: "> guidance/executive/gravity-turn-pitch-rate-command </property>

0 commit comments

Comments
 (0)