change GS source

This commit is contained in:
Zichao Lin 2022-07-10 21:30:04 +08:00
parent 30cff7ce18
commit 364fd43810

@ -48,7 +48,7 @@ void TinyEurocat::OnGetTagItem( CFlightPlan FlightPlan,
sprintf(sItemString, "%04s", tmpstr); sprintf(sItemString, "%04s", tmpstr);
break; break;
case TAG_ITEM_MET_CURR_SPD: case TAG_ITEM_MET_CURR_SPD:
mcspd = RadarTarget.GetGS() * 1.852; mcspd = RadarTarget.GetPosition().GetReportedGS() * 1.852;
mcspd /= 10; mcspd /= 10;
itoa(mcspd, tmpstr, 10); itoa(mcspd, tmpstr, 10);
sprintf(sItemString, "%03s", tmpstr); sprintf(sItemString, "%03s", tmpstr);