/* Copy constructor */ AU_UAV_ROS::PlaneObject::PlaneObject(const AU_UAV_ROS::PlaneObject& pobj): CObject(pobj.getLatitude(), pobj.getLongitude(), pobj.getCollisionRadius()){ this->id = pobj.id; this->altitude = pobj.altitude; this->bearing = pobj.bearing; this->actualBearing = pobj.actualBearing; this->speed = pobj.speed; this->destination = pobj.destination; this->lastUpdateTime = pobj.lastUpdateTime; }
/* Copy constructor */ AU_UAV_ROS::PlaneObject::PlaneObject(const AU_UAV_ROS::PlaneObject& pobj): CObject(pobj.getLatitude(), pobj.getLongitude(), pobj.getCollisionRadius()){ this->id = pobj.id; this->altitude = pobj.altitude; this->bearing = pobj.bearing; this->actualBearing = pobj.actualBearing; this->speed = pobj.speed; this->destination = pobj.destination; this->lastUpdateTime = pobj.lastUpdateTime; this->tMinus1Lat = pobj.tMinus1Lat; this->tMinus1Lon = pobj.tMinus1Lon; this->tMinus2Lat = pobj.tMinus2Lat; this->tMinus2Lon = pobj.tMinus2Lon; this->leader = pobj.leader; this->follower = pobj.follower; this->checked = pobj.checked; this->flock = pobj.flock; }