Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
bcb9982dc1 | |||
d347ed5f3b | |||
f67fed9e09 | |||
364fd43810 | |||
30cff7ce18 | |||
aa4f0aa56e | |||
25efc38e9c | |||
3ab3066718 |
11
README.md
11
README.md
@ -16,7 +16,7 @@ Open OTHER SETS -> TAG Editor, and manually replace default altitude, cleared al
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
- Current altitude, Cleared altitude and current speed in metric
|
- 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
|
## Changlog
|
||||||
|
|
||||||
@ -30,4 +30,11 @@ Open OTHER SETS -> TAG Editor, and manually replace default altitude, cleared al
|
|||||||
- fix current altitude accuracy
|
- fix current altitude accuracy
|
||||||
- fix cleared alt to adapt china rvsm
|
- fix cleared alt to adapt china rvsm
|
||||||
- check if cleared alt is valid to rvsm
|
- check if cleared alt is valid to rvsm
|
||||||
- remove cleared alt when equals final alt
|
- remove cleared alt when equals final alt
|
||||||
|
|
||||||
|
## v1.1.1
|
||||||
|
|
||||||
|
- change license and copyright holder
|
||||||
|
- remove force rvsm
|
||||||
|
- change ``GS`` source
|
||||||
|
- change ``CFL`` algorithm
|
@ -6,9 +6,9 @@
|
|||||||
|
|
||||||
TinyEurocat::TinyEurocat(void) : CPlugIn ( COMPATIBILITY_CODE,
|
TinyEurocat::TinyEurocat(void) : CPlugIn ( COMPATIBILITY_CODE,
|
||||||
"TinyEurocat",
|
"TinyEurocat",
|
||||||
"1.0.2",
|
"1.1.1",
|
||||||
"Future Sim",
|
"Future Sim Studio",
|
||||||
"GNU GPL v3.0 +" )
|
"Copr. 2022 Future Sim Studio" )
|
||||||
{
|
{
|
||||||
RegisterTagItemType("Metric / Current Altitude", TAG_ITEM_MET_CURR_ALT);
|
RegisterTagItemType("Metric / Current Altitude", TAG_ITEM_MET_CURR_ALT);
|
||||||
RegisterTagItemType("Metric / Cleared Altitude", TAG_ITEM_MET_ASS_ALT);
|
RegisterTagItemType("Metric / Cleared Altitude", TAG_ITEM_MET_ASS_ALT);
|
||||||
@ -29,25 +29,10 @@ void TinyEurocat::OnGetTagItem( CFlightPlan FlightPlan,
|
|||||||
{
|
{
|
||||||
char tmpstr[15];
|
char tmpstr[15];
|
||||||
case TAG_ITEM_MET_ASS_ALT:
|
case TAG_ITEM_MET_ASS_ALT:
|
||||||
maalt = FlightPlan.GetClearedAltitude() * 0.3048;
|
maalt = FlightPlan.GetClearedAltitude() * 0.3048 / 10;
|
||||||
maalt /= 100;
|
if (maalt > 0)
|
||||||
if (maalt > 0 && maalt != int(FlightPlan.GetFinalAltitude() * 0.3048) / 100 && maalt <= 149)
|
|
||||||
{
|
{
|
||||||
if (maalt <= 84)
|
itoa(maalt, tmpstr, 10);
|
||||||
{
|
|
||||||
if (maalt % 3 == 1)
|
|
||||||
maalt -= 1;
|
|
||||||
else if (maalt % 3 == 2)
|
|
||||||
maalt += 1;
|
|
||||||
}
|
|
||||||
else if (maalt <= 125)
|
|
||||||
{
|
|
||||||
if ((maalt + 1) % 3 == 1)
|
|
||||||
maalt -= 1;
|
|
||||||
else if ((maalt + 1) % 3 == 2)
|
|
||||||
maalt += 1;
|
|
||||||
}
|
|
||||||
itoa(maalt * 10, tmpstr, 10);
|
|
||||||
sprintf(sItemString, "%04s", tmpstr);
|
sprintf(sItemString, "%04s", tmpstr);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -56,13 +41,12 @@ void TinyEurocat::OnGetTagItem( CFlightPlan FlightPlan,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TAG_ITEM_MET_CURR_ALT:
|
case TAG_ITEM_MET_CURR_ALT:
|
||||||
mcalt = RadarTarget.GetPosition().GetPressureAltitude() * 0.3048;
|
mcalt = RadarTarget.GetPosition().GetPressureAltitude() * 0.3048 / 10;
|
||||||
mcalt /= 10;
|
|
||||||
itoa(mcalt, tmpstr, 10);
|
itoa(mcalt, tmpstr, 10);
|
||||||
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);
|
||||||
|
Reference in New Issue
Block a user