UPDATE: updated some debug logs
This commit is contained in:
@@ -56,7 +56,8 @@ namespace Entities
|
||||
OwnShipTrack->setPosition(pos);
|
||||
Orders::MoveOrder moveorder(OwnShipTrack->getIdentifier(),WHISPER::SourceType::ENTITY);
|
||||
moveorder.setPosition(pos);
|
||||
|
||||
MovemtServer_->sendMessage(moveorder.buildMessage().serialize());
|
||||
LOG_S(INFO)<<"Move Order send";
|
||||
}
|
||||
void Entity::setSpeed(double val)
|
||||
{
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace Orders
|
||||
Speed = SimCore::Data<double>();
|
||||
Course = SimCore::Data<double>();
|
||||
StartTime = SimCore::Data<uint64_t>();
|
||||
pos_ = SimCore::Position();
|
||||
pos_ = pos;
|
||||
|
||||
|
||||
}
|
||||
@@ -56,6 +56,7 @@ namespace Orders
|
||||
|
||||
if (pos_.isValid())
|
||||
{
|
||||
LOG_S(INFO)<<"position is valid";
|
||||
MoveOrder.mutable_geocentricposition()->set_x(pos_.getGeocentricPos().x());
|
||||
MoveOrder.mutable_geocentricposition()->set_y(pos_.getGeocentricPos().y());
|
||||
MoveOrder.mutable_geocentricposition()->set_z(pos_.getGeocentricPos().z());
|
||||
|
||||
Reference in New Issue
Block a user