mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Ref T259, Ref T243 use elevation plane for altitude
general idea: by using the plane class, we can set a elevation and then find a better one * use elevation plane in situation * adjusted depending classes such as hints, lists * using setGroundElevationChecked so elevation can be gradually improved
This commit is contained in:
@@ -165,7 +165,8 @@ namespace BlackMiscTest
|
||||
const CSpeed gs(number * 10, CSpeedUnit::km_h());
|
||||
const CAltitude gndElev({ 0, CLengthUnit::m() }, CAltitude::MeanSeaLevel);
|
||||
const CCoordinateGeodetic c(lat, lng, alt);
|
||||
CAircraftSituation s(callsign, c, heading, pitch, bank, gs, gndElev);
|
||||
CAircraftSituation s(callsign, c, heading, pitch, bank, gs);
|
||||
s.setGroundElevation(gndElev);
|
||||
s.setMSecsSinceEpoch(ts - deltaT * number); // values in past
|
||||
s.setTimeOffsetMs(offset);
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user