clear two gcc warnings
This commit is contained in:
parent
6c3035af60
commit
f938a23d7c
2 changed files with 2 additions and 2 deletions
|
@ -428,7 +428,7 @@ void FGAIWingman::Join(double dt) {
|
||||||
//double approx_angle = atan2(daltM, range);
|
//double approx_angle = atan2(daltM, range);
|
||||||
double frm_spd = 50; // formation speed
|
double frm_spd = 50; // formation speed
|
||||||
double join_rnge = 1000.0;
|
double join_rnge = 1000.0;
|
||||||
double recip_parent_hdg = calcRecipBearingDeg(parent_hdg);
|
// double recip_parent_hdg = calcRecipBearingDeg(parent_hdg);
|
||||||
int turn = SGMiscd::sign(rel_brg);// turn direction: 1 = right, -1 = left
|
int turn = SGMiscd::sign(rel_brg);// turn direction: 1 = right, -1 = left
|
||||||
|
|
||||||
if (range <= join_rnge && (hdg >= hdg_l_lim || hdg <= hdg_r_lim)){
|
if (range <= join_rnge && (hdg >= hdg_l_lim || hdg <= hdg_r_lim)){
|
||||||
|
|
|
@ -83,7 +83,7 @@ public:
|
||||||
--destIndex;
|
--destIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
int currentWpIndex = currentWaypoint();
|
unsigned int currentWpIndex = currentWaypoint();
|
||||||
WayptRef w(_rm->removeWayptAtIndex(srcIndex));
|
WayptRef w(_rm->removeWayptAtIndex(srcIndex));
|
||||||
SG_LOG(SG_GENERAL, SG_INFO, "wpt:" << w->ident());
|
SG_LOG(SG_GENERAL, SG_INFO, "wpt:" << w->ident());
|
||||||
_rm->insertWayptAtIndex(w, destIndex);
|
_rm->insertWayptAtIndex(w, destIndex);
|
||||||
|
|
Loading…
Add table
Reference in a new issue