14 Commits

Author SHA1 Message Date
bcb9982dc1 update readme 2022-07-10 21:50:29 +08:00
d347ed5f3b change version to 1.1.1 2022-07-10 21:39:17 +08:00
f67fed9e09 change cfl algorithm 2022-07-10 21:38:44 +08:00
364fd43810 change GS source 2022-07-10 21:30:04 +08:00
30cff7ce18 remove force rvsm 2022-07-10 21:24:58 +08:00
aa4f0aa56e change copyright 2022-07-10 21:24:15 +08:00
25efc38e9c change author name 2022-05-12 16:43:17 +08:00
3ab3066718 change license to v3.0 only 2022-05-11 13:51:09 +08:00
a9094aeb17 change version to 1.0.2 2022-05-08 18:03:21 +08:00
45ae91f4bc remove cleared alt when equals final alt 2022-05-08 18:01:31 +08:00
7fb4a5f88b check if cleared alt is valid to rvsm 2022-05-08 17:59:08 +08:00
fe26cb8f24 fix cleared alt to adapt china rvsm 2022-05-08 17:55:48 +08:00
2554e22f66 fix current altitude accuracy 2022-05-08 11:00:45 +08:00
85e3e82777 update readme.md 2022-05-08 08:05:59 +08:00
2 changed files with 38 additions and 19 deletions

View File

@ -1,15 +1,40 @@
# TinyEurocat
An simple EuroScope plug-in to simulate THALES Eurocat TAG items
<hr>
## Installation
### 1. Load the plug-in
In order to install the plug-in, extract the DLL file to whererver you want, then load the plug-in from OTHER SETS -> Plug-ins -> Load
### 2. Config the TAGs
Open OTHER SETS -> TAG Editor, and manually replace default altitude, cleared altitude and speed item with the one starts with TinyEurocat.
## Features
- Current altitude, Cleared altitude and current speed in metric
- show nohing when cleared altitude is not assigned instead of 0 or crz altitude
- show nohing when cleared altitude is 0
## Changlog
### v1.0.1
- Current altitude, Cleared altitude and current speed in metric
- show nohing when cleared altitude is not assigned instead of 0 or crz altitude
- show nohing when cleared altitude is not assigned instead of 0 or crz altitude
### v1.0.2
- fix current altitude accuracy
- fix cleared alt to adapt china rvsm
- check if cleared alt is valid to rvsm
- remove cleared alt when equals final alt
## v1.1.1
- change license and copyright holder
- remove force rvsm
- change ``GS`` source
- change ``CFL`` algorithm

View File

@ -6,9 +6,9 @@
TinyEurocat::TinyEurocat(void) : CPlugIn ( COMPATIBILITY_CODE,
"TinyEurocat",
"1.0.1",
"Future Sim",
"GNU GPL v3.0 +" )
"1.1.1",
"Future Sim Studio",
"Copr. 2022 Future Sim Studio" )
{
RegisterTagItemType("Metric / Current Altitude", TAG_ITEM_MET_CURR_ALT);
RegisterTagItemType("Metric / Cleared Altitude", TAG_ITEM_MET_ASS_ALT);
@ -27,18 +27,12 @@ void TinyEurocat::OnGetTagItem( CFlightPlan FlightPlan,
int maalt, mcalt, mcspd;
switch (ItemCode)
{
char tmpstr[15];
char tmpstr[15];
case TAG_ITEM_MET_ASS_ALT:
maalt = FlightPlan.GetClearedAltitude() * 0.3048;
if(maalt != 0)
maalt = FlightPlan.GetClearedAltitude() * 0.3048 / 10;
if (maalt > 0)
{
maalt /= 100;
if(maalt % 3 == 1)
maalt -= 1;
else if(maalt % 3 == 2)
maalt += 1;
itoa(maalt * 10, tmpstr, 10);
itoa(maalt, tmpstr, 10);
sprintf(sItemString, "%04s", tmpstr);
}
else
@ -47,13 +41,13 @@ void TinyEurocat::OnGetTagItem( CFlightPlan FlightPlan,
}
break;
case TAG_ITEM_MET_CURR_ALT:
mcalt = RadarTarget.GetPosition().GetPressureAltitude() * 0.3048;
mcalt /= 100;
itoa(mcalt * 10, tmpstr, 10);
mcalt = RadarTarget.GetPosition().GetPressureAltitude() * 0.3048 / 10;
itoa(mcalt, tmpstr, 10);
sprintf(sItemString, "%04s", tmpstr);
break;
case TAG_ITEM_MET_CURR_SPD:
mcspd = RadarTarget.GetGS() * 1.852 / 10;
mcspd = RadarTarget.GetPosition().GetReportedGS() * 1.852;
mcspd /= 10;
itoa(mcspd, tmpstr, 10);
sprintf(sItemString, "%03s", tmpstr);
break;