ADD: added usage of the data isValid() func in SimTrack
This commit is contained in:
@@ -85,10 +85,10 @@ namespace SimCore
|
|||||||
SimTrack.mutable_geocentricposition()->set_z(position_.getGeocentricPos()(SimCore::Z));
|
SimTrack.mutable_geocentricposition()->set_z(position_.getGeocentricPos()(SimCore::Z));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Speed.getValidity()) SimTrack.set_contactspeed(this->Speed.getValue());
|
if(Speed.isValid()) SimTrack.set_contactspeed(this->Speed.getValue());
|
||||||
if(Course.getValidity()) SimTrack.set_contactcourse(this->Course.getValue());
|
if(Course.isValid()) SimTrack.set_contactcourse(this->Course.getValue());
|
||||||
if(Pitch.getValidity()) SimTrack.set_conactpitch(this->Pitch.getValue());
|
if(Pitch.isValid()) SimTrack.set_conactpitch(this->Pitch.getValue());
|
||||||
if(RCS.getValidity()) SimTrack.set_contactrcs(this->RCS.getValue());
|
if(RCS.isValid()) SimTrack.set_contactrcs(this->RCS.getValue());
|
||||||
|
|
||||||
|
|
||||||
SimTrack.mutable_entityidentifier()->set_number(this->ID_.getNumber());
|
SimTrack.mutable_entityidentifier()->set_number(this->ID_.getNumber());
|
||||||
|
|||||||
Reference in New Issue
Block a user