mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 15:25:34 +08:00
Ref T609, change COM transmission values in UI/emulated driver
This commit is contained in:
committed by
Mat Sutcliffe
parent
b9afe63511
commit
0596782926
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user