Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
68fc719b
Commit
68fc719b
authored
Dec 29, 2013
by
Thomas Gubler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flightgear HIL add catapult to Malolo1
parent
7e5acad9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
86 additions
and
0 deletions
+86
-0
Malolo1-set.xml
files/flightgear/Aircraft/Malolo1/Malolo1-set.xml
+26
-0
Malolo1.xml
files/flightgear/Aircraft/Malolo1/Malolo1.xml
+15
-0
catapult.nas
files/flightgear/Aircraft/Malolo1/Nasal/catapult.nas
+42
-0
readme_qgroundcontrol.txt
files/flightgear/Aircraft/Malolo1/readme_qgroundcontrol.txt
+3
-0
No files found.
files/flightgear/Aircraft/Malolo1/Malolo1-set.xml
View file @
68fc719b
...
...
@@ -63,9 +63,33 @@ dynamics model, and external 3D model.
<line>
Approach speed: 15-25 mph
</line>
<line>
Stall speed (Vs): 10 mph
</line>
</help>
<menubar>
<default>
<menu
n=
"10"
>
<label>
Malolo
</label>
<enabled
type=
"bool"
>
true
</enabled>
<item>
<label>
Operate catapult
</label>
<binding>
<command>
nasal
</command>
<script>
malolo1.launchCatapult();
</script>
</binding>
</item>
</menu>
</default>
</menubar>
</sim>
<nasal>
<malolo1>
<file>
Aircraft/Malolo1/Nasal/catapult.nas
</file>
</malolo1>
</nasal>
<controls>
<flight>
<aileron-trim>
-0.01
</aileron-trim>
<!-- fixed -->
...
...
@@ -100,4 +124,6 @@ dynamics model, and external 3D model.
</config>
</autopilot>
</PropertyList>
files/flightgear/Aircraft/Malolo1/Malolo1.xml
View file @
68fc719b
...
...
@@ -543,4 +543,19 @@
</function>
</axis>
</aerodynamics>
<external_reactions>
<force
name=
"catapult"
frame=
"BODY"
>
<location
unit=
"M"
>
<x>
0
</x>
<y>
0
</y>
<z>
0
</z>
</location>
<direction>
<x>
1
</x>
<y>
0
</y>
<z>
0
</z>
</direction>
</force>
</external_reactions>
</fdm_config>
files/flightgear/Aircraft/Malolo1/Nasal/catapult.nas
0 → 100644
View file @
68fc719b
var launchCatapult = func {
# time on catapult = 1/10 sec
# speed when leaving catapult = 50 km/h ?
var countdownRunning = 1;
var count = 5;
var countdown = func {
if (countdownRunning) {
if (count != 0) {
setprop("/sim/screen/white",count);
count = count - 1;
settimer(countdown, 1);
}
else {
countdownRunning = 0;
setprop("/sim/screen/yellow","Go!");
launch();
var launchPad = aircraft.door.new("/sim/model/X100/launch-pad", 0.2);
launchPad.toggle();
}
}
}
countdown();
var launchRunning = 1;
var magnitude = 230; # lbs, unrealisticly high, because the FDM is wrong
var launch = func {
if (launchRunning) {
if (magnitude == 0){
launchRunning = 0;
# remove launcher contact points
setprop("/fdm/jsbsim/contact/unit[6]/pos-norm",0);
setprop("/fdm/jsbsim/contact/unit[7]/pos-norm",0);
setprop("/fdm/jsbsim/contact/unit[8]/pos-norm",0);
}
setprop("/fdm/jsbsim/external_reactions/catapult/magnitude",magnitude);
print (magnitude);
magnitude = 0;
settimer(launch, 0.1);
}
}
}
files/flightgear/Aircraft/Malolo1/readme_qgroundcontrol.txt
0 → 100644
View file @
68fc719b
This is the original Malolo1 model with added catapult functionality. The catapult is from https://gitorious.org/mavlab/x100/
-Thomas Gubler
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment