Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alberto Ruiz Garcia
Firmware
Commits
898664d9
Commit
898664d9
authored
6 years ago
by
Beat Küng
Committed by
Julian Oes
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
jmavsim: fix HIL, don't add -lockstep by default
parent
8692d725
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Tools/jmavsim_run.sh
+6
-3
6 additions, 3 deletions
Tools/jmavsim_run.sh
Tools/sitl_multiple_run.sh
+1
-1
1 addition, 1 deletion
Tools/sitl_multiple_run.sh
Tools/sitl_run.sh
+1
-1
1 addition, 1 deletion
Tools/sitl_run.sh
with
8 additions
and
5 deletions
Tools/jmavsim_run.sh
+
6
−
3
View file @
898664d9
...
...
@@ -10,7 +10,7 @@ extra_args=
baudrate
=
921600
device
=
ip
=
"127.0.0.1"
while
getopts
":b:d:p:qr:f:i:"
opt
;
do
while
getopts
":b:d:p:qr:f:i:
l
"
opt
;
do
case
$opt
in
b
)
baudrate
=
$OPTARG
...
...
@@ -33,6 +33,9 @@ while getopts ":b:d:p:qr:f:i:" opt; do
f
)
extra_args
=
"
$extra_args
-f
$OPTARG
"
;;
l
)
extra_args
=
"
$extra_args
-lockstep"
;;
\?
)
echo
"Invalid option: -
$OPTARG
"
>
&2
exit
1
...
...
@@ -61,11 +64,11 @@ fi
ant create_run_jar copy_res
cd
out/production
java
-XX
:GCTimeRatio
=
20
-Djava
.ext.dirs
=
-jar
jmavsim_run.jar
-lockstep
$device
$extra_args
java
-XX
:GCTimeRatio
=
20
-Djava
.ext.dirs
=
-jar
jmavsim_run.jar
$device
$extra_args
ret
=
$?
if
[
$ret
-ne
0
-a
$ret
-ne
130
]
;
then
# 130 is Ctrl-C
# if the start of java fails, it's probably because the GC option is not
# understood. Try starting without it
java
-Djava
.ext.dirs
=
-jar
jmavsim_run.jar
-lockstep
$device
$extra_args
java
-Djava
.ext.dirs
=
-jar
jmavsim_run.jar
$device
$extra_args
fi
This diff is collapsed.
Click to expand it.
Tools/sitl_multiple_run.sh
+
1
−
1
View file @
898664d9
...
...
@@ -4,7 +4,7 @@
# The simulator is expected to send to TCP port 4560+i for i in [0, N-1]
# For example jmavsim can be run like this:
#./Tools/jmavsim_run.sh -p 4561
#./Tools/jmavsim_run.sh -p 4561
-l
sitl_num
=
2
[
-n
"
$1
"
]
&&
sitl_num
=
"
$1
"
...
...
This diff is collapsed.
Click to expand it.
Tools/sitl_run.sh
+
1
−
1
View file @
898664d9
...
...
@@ -72,7 +72,7 @@ fi
if
[
"
$program
"
==
"jmavsim"
]
&&
[
!
-n
"
$no_sim
"
]
;
then
# Start Java simulator
"
$src_path
"
/Tools/jmavsim_run.sh
-r
250
-f
$speed_factor
&
"
$src_path
"
/Tools/jmavsim_run.sh
-r
250
-f
$speed_factor
-l
&
SIM_PID
=
`
echo
$!
`
elif
[
"
$program
"
==
"gazebo"
]
&&
[
!
-n
"
$no_sim
"
]
;
then
if
[
-x
"
$(
command
-v
gazebo
)
"
]
;
then
...
...
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