Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
de3026b6
Commit
de3026b6
authored
May 14, 2019
by
Julian Zobel
Browse files
Bugfix
parent
b8dd7521
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/aerial/SimpleMulticopterMovement.java
View file @
de3026b6
...
...
@@ -77,7 +77,7 @@ public class SimpleMulticopterMovement implements UAVMovementModel {
@Override
public
void
move
(
long
timeBetweenMovementOperations
)
{
if
(
f
irst
)
{
if
(
f
alse
)
{
System
.
out
.
println
(
hoverThrustRequired
());
System
.
out
.
println
(
motor
.
getMaxThrust
());
...
...
@@ -191,6 +191,21 @@ public class SimpleMulticopterMovement implements UAVMovementModel {
}
}
else
if
(
motor
.
isOn
())
{
if
(
currentSpeed
!=
0
)
{
throw
new
UnsupportedOperationException
(
"no route but speed not 0?"
);
}
PositionVector
position
=
new
PositionVector
(
topologyComponent
.
getRealPosition
());
if
(
position
.
getAltitude
()
==
0
)
{
motor
.
requestThrust
(
0
);
}
else
{
motor
.
requestThrust
(
hoverThrustRequired
());
}
}
}
/*
...
...
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