mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Ref T730, in emulated driver only use frequencies from COM, do NOT override the tx/rx values
This commit is contained in:
committed by
Mat Sutcliffe
parent
ef9e7b0bf1
commit
10f696d558
@@ -120,7 +120,20 @@ namespace BlackSimPlugin
|
||||
{
|
||||
if (canLog()) { m_monitorWidget->appendReceivingCall(Q_FUNC_INFO, aircraft.toQString(), originator.toQString()); }
|
||||
if (originator == identifier()) { return false; } // myself
|
||||
m_myAircraft.setCockpit(aircraft);
|
||||
|
||||
CSimulatedAircraft a = aircraft;
|
||||
|
||||
// only use the frequencies, not active transmit/receive
|
||||
CComSystem com1 = m_myAircraft.getCom1System();
|
||||
CComSystem com2 = m_myAircraft.getCom2System();
|
||||
com1.setFrequencyActive(aircraft.getCom1System().getFrequencyActive());
|
||||
com2.setFrequencyActive(aircraft.getCom2System().getFrequencyActive());
|
||||
com1.setFrequencyStandby(aircraft.getCom1System().getFrequencyStandby());
|
||||
com2.setFrequencyStandby(aircraft.getCom2System().getFrequencyStandby());
|
||||
a.setCom1System(com1);
|
||||
a.setCom2System(com2);
|
||||
|
||||
m_myAircraft.setCockpit(a);
|
||||
emit this->internalAircraftChanged();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user