/* 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;
}
Esempio n. 2
0
/* 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;
}
Esempio n. 3
0
/* Find angle between two PlaneObjects.  The calling plane gives the starting latitude and longitude, 
and the object passed as a parameter gives the final latitude and longitude. */
double AU_UAV_ROS::PlaneObject::findAngle(const AU_UAV_ROS::PlaneObject& pobj) const {
	return AU_UAV_ROS::CObject::findAngle(pobj.getLatitude(), pobj.getLongitude()); /* call inherited function */
}