mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-24 18:04:14 +08:00
Ref T505, simulator live data
* gs in kts and km/h * altitude in m/ft * heading 0-360
This commit is contained in:
committed by
Mat Sutcliffe
parent
8bd6fdf9fc
commit
ac0d3b20ad
@@ -149,15 +149,22 @@ namespace BlackGui
|
|||||||
}
|
}
|
||||||
this->addOrUpdateLiveDataByName("latitude", s.latitude().toQString(), iconLatLng);
|
this->addOrUpdateLiveDataByName("latitude", s.latitude().toQString(), iconLatLng);
|
||||||
this->addOrUpdateLiveDataByName("longitude", s.longitude().toQString(), iconLatLng);
|
this->addOrUpdateLiveDataByName("longitude", s.longitude().toQString(), iconLatLng);
|
||||||
this->addOrUpdateLiveDataByName("altitude", s.getAltitude().valueRoundedWithUnit(CLengthUnit::ft(), 2), iconAlt);
|
this->addOrUpdateLiveDataByName("altitude (ft)", s.getAltitude().valueRoundedWithUnit(CLengthUnit::ft(), 1), iconAlt);
|
||||||
|
this->addOrUpdateLiveDataByName("altitude (m)", s.getAltitude().valueRoundedWithUnit(CLengthUnit::m(), 2), iconAlt);
|
||||||
|
|
||||||
if (s.hasGroundElevation())
|
if (s.hasGroundElevation())
|
||||||
{
|
{
|
||||||
this->addOrUpdateLiveDataByName("elevation", s.getGroundElevation().valueRoundedWithUnit(CLengthUnit::ft(), 2), iconAlt);
|
this->addOrUpdateLiveDataByName("elevation", s.getGroundElevation().valueRoundedWithUnit(CLengthUnit::ft(), 2), iconAlt);
|
||||||
}
|
}
|
||||||
this->addOrUpdateLiveDataByName("pitch", s.getPitch().toQString(), iconAttitude);
|
this->addOrUpdateLiveDataByName("pitch", s.getPitch().toQString(), iconAttitude);
|
||||||
this->addOrUpdateLiveDataByName("bank", s.getBank().toQString(), iconAttitude);
|
this->addOrUpdateLiveDataByName("bank", s.getBank().toQString(), iconAttitude);
|
||||||
this->addOrUpdateLiveDataByName("heading", s.getHeading().toQString(), s.getHeading().toIcon());
|
|
||||||
this->addOrUpdateLiveDataByName("ground speed", s.getGroundSpeed().toQString(), s.getGroundSpeed().toIcon());
|
const CHeading heading = s.getHeading().normalizedTo360Degrees();
|
||||||
|
this->addOrUpdateLiveDataByName("heading", heading.valueRoundedWithUnit(CAngleUnit::deg(), 1), s.getHeading().toIcon());
|
||||||
|
|
||||||
|
const CSpeed gs = s.getGroundSpeed();
|
||||||
|
this->addOrUpdateLiveDataByName("ground speed (kts)", gs.valueRoundedWithUnit(CSpeedUnit::kts(), 1), gs.toIcon());
|
||||||
|
this->addOrUpdateLiveDataByName("ground speed (km/h)", gs.valueRoundedWithUnit(CSpeedUnit::km_h(), 1), gs.toIcon());
|
||||||
|
|
||||||
this->addOrUpdateLiveDataByName("COM1 active", c1.getFrequencyActive().toQString(), iconRadio);
|
this->addOrUpdateLiveDataByName("COM1 active", c1.getFrequencyActive().toQString(), iconRadio);
|
||||||
this->addOrUpdateLiveDataByName("COM2 active", c2.getFrequencyActive().toQString(), iconRadio);
|
this->addOrUpdateLiveDataByName("COM2 active", c2.getFrequencyActive().toQString(), iconRadio);
|
||||||
|
|||||||
@@ -25,13 +25,13 @@
|
|||||||
#include <QTabWidget>
|
#include <QTabWidget>
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
|
|
||||||
|
namespace Ui { class CSimulatorComponent; }
|
||||||
namespace BlackMisc
|
namespace BlackMisc
|
||||||
{
|
{
|
||||||
class CIcon;
|
class CIcon;
|
||||||
class CStatusMessageList;
|
class CStatusMessageList;
|
||||||
namespace Simulation { class CSimulatedAircraft; }
|
namespace Simulation { class CSimulatedAircraft; }
|
||||||
}
|
}
|
||||||
namespace Ui { class CSimulatorComponent; }
|
|
||||||
namespace BlackGui
|
namespace BlackGui
|
||||||
{
|
{
|
||||||
namespace Components
|
namespace Components
|
||||||
|
|||||||
Reference in New Issue
Block a user