finish value of current speed in metric

This commit is contained in:
Zichao Lin 2022-05-08 00:41:52 +08:00
parent 303134c4a2
commit 8ce62c5cf4

View File

@ -50,8 +50,10 @@ void TinyEurocat::OnGetTagItem( CFlightPlan FlightPlan,
itoa(mcalt, sItemString, 10);
break;
case TAG_ITEM_MET_CURR_SPD:
mcspd = RadarTarget.GetGS() * 1.852;
itoa(mcspd, sItemString, 10);
mcspd = RadarTarget.GetGS() * 1.852 / 10;
char tmpstr[15];
itoa(mcspd, tmpstr, 10);
sprintf(sItemString, "%03s", tmpstr);
break;
}
}