Fix #881 by inverting location value imported from RockSim
This commit is contained in:
parent
fea2497ecc
commit
f2b15c10ea
@ -180,7 +180,9 @@ class FinSetHandler extends AbstractElementHandler {
|
|||||||
finish = RocksimFinishCode.fromCode(Integer.parseInt(content)).asOpenRocket();
|
finish = RocksimFinishCode.fromCode(Integer.parseInt(content)).asOpenRocket();
|
||||||
}
|
}
|
||||||
if (RocksimCommonConstants.XB.equals(element)) {
|
if (RocksimCommonConstants.XB.equals(element)) {
|
||||||
location = Double.parseDouble(content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_LENGTH;
|
// Opposite value accounts for the different relative distance directions used
|
||||||
|
// Issue Ref: https://github.com/openrocket/openrocket/issues/881
|
||||||
|
location = -Double.parseDouble(content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_LENGTH;
|
||||||
}
|
}
|
||||||
if (RocksimCommonConstants.LOCATION_MODE.equals(element)) {
|
if (RocksimCommonConstants.LOCATION_MODE.equals(element)) {
|
||||||
axialMethod = RocksimLocationMode.fromCode(Integer.parseInt(content)).asOpenRocket();
|
axialMethod = RocksimLocationMode.fromCode(Integer.parseInt(content)).asOpenRocket();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user