finish value of current speed in metric
This commit is contained in:
parent
303134c4a2
commit
8ce62c5cf4
@ -50,8 +50,10 @@ void TinyEurocat::OnGetTagItem( CFlightPlan FlightPlan,
|
|||||||
itoa(mcalt, sItemString, 10);
|
itoa(mcalt, sItemString, 10);
|
||||||
break;
|
break;
|
||||||
case TAG_ITEM_MET_CURR_SPD:
|
case TAG_ITEM_MET_CURR_SPD:
|
||||||
mcspd = RadarTarget.GetGS() * 1.852;
|
mcspd = RadarTarget.GetGS() * 1.852 / 10;
|
||||||
itoa(mcspd, sItemString, 10);
|
char tmpstr[15];
|
||||||
|
itoa(mcspd, tmpstr, 10);
|
||||||
|
sprintf(sItemString, "%03s", tmpstr);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user