forked from Auterion/px4-jsbsim-bridge
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from PX4/pr-upstream-merge
Upstream merge for latest master on Auterion/px4-jsbsim-bridge
- Loading branch information
Showing
11 changed files
with
360 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "models/Rascal"] | ||
path = models/Rascal | ||
url = https://github.com/ThunderFly-aerospace/FlightGear-Rascal.git | ||
[submodule "models/ATI-Resolution"] | ||
path = models/ATI-Resolution | ||
url = https://github.com/FGMEMBERS/ATI-Resolution.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<model name="rascal"> | ||
<jsbsimbridge> | ||
<aircraft_directory>models/ATI-Resolution</aircraft_directory> | ||
<aircraft_model>Malolo1</aircraft_model> | ||
</jsbsimbridge> | ||
<mavlink_interface> | ||
<tcp_port>4560</tcp_port> | ||
</mavlink_interface> | ||
<sensors> | ||
<imu> | ||
</imu> | ||
<gps> | ||
</gps> | ||
<barometer> | ||
</barometer> | ||
<magnetometer> | ||
</magnetometer> | ||
<airspeed> | ||
</airspeed> | ||
</sensors> | ||
<actuators> | ||
<channel name="rudder"> | ||
<index>2</index> | ||
<scale>-1</scale> | ||
<property>fcs/rudder-cmd-norm</property> | ||
</channel> | ||
<channel name="aileron"> | ||
<index>5</index> | ||
<scale>-1</scale> | ||
<property>fcs/aileron-cmd-norm</property> | ||
</channel> | ||
<channel name="elevator"> | ||
<index>7</index> | ||
<scale>-1</scale> | ||
<property>fcs/elevator-cmd-norm</property> | ||
</channel> | ||
<channel name="throttle"> | ||
<index>4</index> | ||
<scale>1</scale> | ||
<property>fcs/throttle-cmd-norm</property> | ||
</channel> | ||
</actuators> | ||
</model> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ATI-Resolution
added at
40571c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sf.net/JSBSimScript.xsl"?> | ||
<runscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="http://jsbsim.sf.net/JSBSimScript.xsd" | ||
name="Testing Template"> | ||
|
||
<description> | ||
Template for generic motor fail test. | ||
</description> | ||
|
||
<use aircraft="quadrotor_x"/> | ||
|
||
<run start="0" end="10000000" dt="0.004"> | ||
|
||
<event name="Fail Motor 0"> | ||
<description> Demonstrate Motor Failure Trigger </description> | ||
<condition> | ||
position/h-sl-meters ge 425 | ||
</condition> | ||
<set name="fcs/motor_health[0]" value="0.0" action="FG_RAMP" tc="5.0"/> | ||
<notify> | ||
<property>simulation/sim-time-sec</property> | ||
</notify> | ||
</event> | ||
|
||
</run> | ||
|
||
</runscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.