Added extra checks to OutsideComponent implementations. Minor commit.
This commit is contained in:
parent
58d9e8f682
commit
5d2e7730f5
@ -144,6 +144,9 @@ public abstract class ExternalComponent extends RocketComponent implements Outsi
|
||||
|
||||
@Override
|
||||
public double getAngularPosition() {
|
||||
if (axial) {
|
||||
return 0.;
|
||||
}
|
||||
return this.position_angular_rad;
|
||||
}
|
||||
|
||||
@ -154,6 +157,9 @@ public abstract class ExternalComponent extends RocketComponent implements Outsi
|
||||
|
||||
@Override
|
||||
public double getRadialPosition() {
|
||||
if (axial) {
|
||||
return 0.;
|
||||
}
|
||||
return this.position_radial_m;
|
||||
}
|
||||
|
||||
@ -164,6 +170,9 @@ public abstract class ExternalComponent extends RocketComponent implements Outsi
|
||||
|
||||
@Override
|
||||
public double getRotation() {
|
||||
if (axial) {
|
||||
return 0.;
|
||||
}
|
||||
return this.rotation_rad;
|
||||
}
|
||||
|
||||
|
@ -77,6 +77,9 @@ public class Stage extends ComponentAssembly implements FlightConfigurableCompon
|
||||
|
||||
@Override
|
||||
public double getAngularPosition() {
|
||||
if (axial) {
|
||||
return 0.;
|
||||
}
|
||||
return this.position_angular_rad;
|
||||
}
|
||||
|
||||
@ -87,6 +90,9 @@ public class Stage extends ComponentAssembly implements FlightConfigurableCompon
|
||||
|
||||
@Override
|
||||
public double getRadialPosition() {
|
||||
if (axial) {
|
||||
return 0.;
|
||||
}
|
||||
return this.position_radial_m;
|
||||
}
|
||||
|
||||
@ -97,6 +103,9 @@ public class Stage extends ComponentAssembly implements FlightConfigurableCompon
|
||||
|
||||
@Override
|
||||
public double getRotation() {
|
||||
if (axial) {
|
||||
return 0.;
|
||||
}
|
||||
return this.rotation_rad;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user