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
dedb49af
Commit
dedb49af
authored
Jan 05, 2022
by
Julian Zobel
🦄
Browse files
Ascension in statemachine multicopter movement
parent
470aa510
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/energy/components/StatelessActuatorComponent.java
View file @
dedb49af
...
...
@@ -78,6 +78,14 @@ public class StatelessActuatorComponent implements ActuatorComponent {
return
characteristics
.
getLast
().
getThrust
()
*
numberOfActuators
;
}
/**
* Get the minimum thrust probided by this component. (idle)
* @return
*/
public
double
getMinThrust
()
{
return
characteristics
.
getFirst
().
getThrust
()
*
numberOfActuators
;
}
/**
* Set the new energy state and calculate the energy consumption from the last state
*/
...
...
src/de/tud/kom/p2psim/impl/topology/movement/aerial/StateMulticopterMovement.java
0 → 100644
View file @
dedb49af
This diff is collapsed.
Click to expand it.
src/de/tud/kom/p2psim/impl/topology/util/PositionVector.java
View file @
dedb49af
...
...
@@ -183,6 +183,10 @@ public class PositionVector implements Location {
this
.
setEntry
(
2
,
altitude
);
}
public
void
setZ
(
double
z
)
{
this
.
setEntry
(
2
,
z
);
}
@Override
public
void
setAccuracy
(
double
accuracy
)
throws
UnsupportedOperationException
{
...
...
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