Skip to content

Commit

Permalink
last println removed
Browse files Browse the repository at this point in the history
  • Loading branch information
ConsueTerra committed Oct 18, 2024
1 parent 7e90441 commit da8fde1
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class VectorDisplay private constructor(
ContextVectorBox(map,binIndex), model, parent, offset) {}

fun createEntity(): ItemDisplay {
println("boop2")
val entity = CraftItemDisplay(
IonServer.server as CraftServer,
ItemDisplay(EntityType.ITEM_DISPLAY, parent.world.minecraft)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ class Starship (

fun setDirectControlEnabled(enabled: Boolean) {
isDirectControlEnabled = enabled
println("now $enabled")
if (enabled) {
val dcMessage = text()
.append(text("Direct Control: ", NamedTextColor.GRAY))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class DynamicEstimator(
if (!needsUpdate) return //dont do matrix operations until data changes
needsUpdate = false
referenceTime = System.currentTimeMillis()
println("# of movements : ${movements.size}")
if (movements.isEmpty()) {//ship hasnt moved in the time interval
referncePos = ship.centerOfMass.toVector()
coeffMatrix = mk.zeros<Double>(numTerms,3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,12 @@ class TranslateMovement(starship: ActiveStarship,
when (type) {
MovementType.MANUAL -> {
starship.shiftDynamicEstimator.addData(starship.centerOfMass.toVector(),this)
starship.shiftDynamicEstimator.needsUpdate = true
}
MovementType.DC -> {
starship.shiftDynamicEstimator.addData(starship.centerOfMass.toVector(), this)
starship.shiftDynamicEstimator.needsUpdate = true
}
MovementType.CRUISE -> {
starship.cruiseDynamicEstimator.addData(starship.centerOfMass.toVector(), this)
starship.cruiseDynamicEstimator.needsUpdate = true
}
else -> {}
}
Expand Down

0 comments on commit da8fde1

Please sign in to comment.