Ref T609, change COM transmission values in UI/emulated driver

This commit is contained in:
Klaus Basan
2019-08-02 23:51:33 +02:00
committed by Mat Sutcliffe
parent b9afe63511
commit 0596782926
4 changed files with 33 additions and 3 deletions

View File

@@ -224,6 +224,15 @@ namespace BlackSimPlugin
return this->updateCockpit(aircraft, this->identifier());
}
bool CSimulatorEmulated::changeInternalCom(const CComSystem &comSystem, CComSystem::ComUnit unit)
{
if (m_myAircraft.getComSystem(unit) == comSystem) { return false; }
m_myAircraft.setComSystem(comSystem, unit);
const bool c = this->updateCockpit(m_myAircraft, this->identifier());
if (c) { emit this->internalAircraftChanged(); }
return c;
}
bool CSimulatorEmulated::changeInternalSelcal(const CSelcal &selcal)
{
if (m_myAircraft.getSelcal() == selcal) { return false; }