Commit 695ccd86 authored by Julian Zobel's avatar Julian Zobel
Browse files

rm sysout

parent b0f47b3a
......@@ -99,8 +99,6 @@ public class StatelessMotorComponent implements EnergyComponent {
double cons = calculateEnergyConsumation(energyState, timeSpentInState);
System.out.println("consumed energy : " + (cons/uJconversionFactor) + " in " + Time.getFormattedTime(timeSpentInState));
energyModel.componentConsumedEnergy(this, cons);
// set new state
......@@ -126,9 +124,7 @@ public class StatelessMotorComponent implements EnergyComponent {
else {
approximateThrustCurrentRelation(targetThrust);
}
System.out.println("Now providing Thrust: " + this.thrust + " N");
return this.thrust;
}
......@@ -175,12 +171,9 @@ public class StatelessMotorComponent implements EnergyComponent {
* Calculate the approximated current with the upper and lower bounds:
* Amp_approx = Amp_lower + (T_target - T_lower)/(T_upper - T_lower) * (Amp_upper - Amp_lower)
*/
double delta = (targetThrust - lower.getThrust())/(upper.getThrust() - lower.getThrust());
double delta = (targetThrust - lower.getThrust())/(upper.getThrust() - lower.getThrust());
double calculatedAmps = lower.getCurrent() + delta * (upper.getCurrent() - lower.getCurrent());
System.out.println(targetThrust + " N targeted => " + calculatedAmps + " A calculated | " + delta + " <> " + lower + " " + upper);
setLoad(targetThrust, calculatedAmps);
}
......
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