Commit dedb49af authored by Julian Zobel's avatar Julian Zobel 🦄
Browse files

Ascension in statemachine multicopter movement

parent 470aa510
......@@ -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
*/
......
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment