ADD: added usage of the data isValid() func in SimTrack

This commit is contained in:
hwinkel
2023-07-07 09:30:11 +02:00
parent 46fcf78f17
commit 6fab3540bb

View File

@@ -85,10 +85,10 @@ namespace SimCore
SimTrack.mutable_geocentricposition()->set_z(position_.getGeocentricPos()(SimCore::Z));
}
if(Speed.getValidity()) SimTrack.set_contactspeed(this->Speed.getValue());
if(Course.getValidity()) SimTrack.set_contactcourse(this->Course.getValue());
if(Pitch.getValidity()) SimTrack.set_conactpitch(this->Pitch.getValue());
if(RCS.getValidity()) SimTrack.set_contactrcs(this->RCS.getValue());
if(Speed.isValid()) SimTrack.set_contactspeed(this->Speed.getValue());
if(Course.isValid()) SimTrack.set_contactcourse(this->Course.getValue());
if(Pitch.isValid()) SimTrack.set_conactpitch(this->Pitch.getValue());
if(RCS.isValid()) SimTrack.set_contactrcs(this->RCS.getValue());
SimTrack.mutable_entityidentifier()->set_number(this->ID_.getNumber());