Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Ardupilot
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Ardupilot
Commits
0dcbe2a1
Commit
0dcbe2a1
authored
13 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
sitl: added sim_arducopter10.sh
useful for testing
parent
532ac607
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Tools/autotest/sim_arducopter10.sh
+39
-0
39 additions, 0 deletions
Tools/autotest/sim_arducopter10.sh
with
39 additions
and
0 deletions
Tools/autotest/sim_arducopter10.sh
0 → 100755
+
39
−
0
View file @
0dcbe2a1
#!/bin/bash
set
-e
set
-x
if
[
$#
-eq
1
]
;
then
frame
=
"
$1
"
target
=
"sitl-
$frame
"
else
frame
=
"+"
target
=
"sitl"
fi
case
$frame
in
+,X,quad
)
target
=
"sitl"
;;
octa
)
target
=
"sitl-octa"
;;
esac
echo
"Building with target
$target
for frame
$frame
"
autotest
=
$(
dirname
$(
readlink
-e
$0
))
pushd
$autotest
/../../ArduCopter
make clean
$target
-mavlink10
tfile
=
$(
tempfile
)
echo
r
>
$tfile
#gnome-terminal -e "gdb -x $tfile --args /tmp/ArduCopter.build/ArduCopter.elf"
gnome-terminal
-e
/tmp/ArduCopter.build/ArduCopter.elf
#gnome-terminal -e "valgrind -q /tmp/ArduCopter.build/ArduCopter.elf"
sleep
2
rm
-f
$tfile
gnome-terminal
-e
"../Tools/autotest/pysim/sim_multicopter.py --frame=
$frame
--home=-35.362938,149.165085,584,270"
sleep
2
popd
mavproxy.py
--master
tcp:127.0.0.1:5760
--sitl
127.0.0.1:5501
--out
127.0.0.1:14550
--out
127.0.0.1:14551
--quadcopter
--mav10
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment