UPDATE: updated some debug logs

This commit is contained in:
hwinkel
2023-08-04 12:49:17 +02:00
parent 401af8cb61
commit 7bc8001936
2 changed files with 4 additions and 2 deletions

View File

@@ -56,7 +56,8 @@ namespace Entities
OwnShipTrack->setPosition(pos); OwnShipTrack->setPosition(pos);
Orders::MoveOrder moveorder(OwnShipTrack->getIdentifier(),WHISPER::SourceType::ENTITY); Orders::MoveOrder moveorder(OwnShipTrack->getIdentifier(),WHISPER::SourceType::ENTITY);
moveorder.setPosition(pos); moveorder.setPosition(pos);
MovemtServer_->sendMessage(moveorder.buildMessage().serialize());
LOG_S(INFO)<<"Move Order send";
} }
void Entity::setSpeed(double val) void Entity::setSpeed(double val)
{ {

View File

@@ -26,7 +26,7 @@ namespace Orders
Speed = SimCore::Data<double>(); Speed = SimCore::Data<double>();
Course = SimCore::Data<double>(); Course = SimCore::Data<double>();
StartTime = SimCore::Data<uint64_t>(); StartTime = SimCore::Data<uint64_t>();
pos_ = SimCore::Position(); pos_ = pos;
} }
@@ -56,6 +56,7 @@ namespace Orders
if (pos_.isValid()) if (pos_.isValid())
{ {
LOG_S(INFO)<<"position is valid";
MoveOrder.mutable_geocentricposition()->set_x(pos_.getGeocentricPos().x()); MoveOrder.mutable_geocentricposition()->set_x(pos_.getGeocentricPos().x());
MoveOrder.mutable_geocentricposition()->set_y(pos_.getGeocentricPos().y()); MoveOrder.mutable_geocentricposition()->set_y(pos_.getGeocentricPos().y());
MoveOrder.mutable_geocentricposition()->set_z(pos_.getGeocentricPos().z()); MoveOrder.mutable_geocentricposition()->set_z(pos_.getGeocentricPos().z());