8 using namespace swift::misc::aviation;
9 using namespace swift::misc::physical_quantities;
11 namespace swift::misc::simulation
15 QReadLocker l(&m_lock);
19 CCallsign COwnAircraftProviderDummy::getOwnCallsign()
const
21 QReadLocker l(&m_lock);
22 return m_ownAircraft.getCallsign();
27 QReadLocker l(&m_lock);
28 return m_ownAircraft.getComSystem(unit);
33 QReadLocker l(&m_lock);
34 return m_ownAircraft.getTransponder();
39 QReadLocker l(&m_lock);
40 return m_ownAircraft.getPosition();
45 QReadLocker l(&m_lock);
46 return m_ownAircraft.getSituation();
51 QReadLocker l(&m_lock);
52 return m_ownAircraft.getParts();
57 QReadLocker l(&m_lock);
58 return m_ownAircraft.getModel();
63 return getOwnAircraft().calculateGreatCircleDistance(position);
70 QWriteLocker l(&m_lock);
71 m_ownAircraft.setCom1System(com1);
72 m_ownAircraft.setCom2System(com2);
73 m_ownAircraft.setTransponder(transponder);
83 QWriteLocker l(&m_lock);
84 CComSystem com = m_ownAircraft.getComSystem(comUnit);
86 m_ownAircraft.setComSystem(com, comUnit);
93 QWriteLocker l(&m_lock);
94 m_ownAircraft.setSelcal(selcal);
101 QWriteLocker l(&m_lock);
102 m_ownAircraft.setModel(model);
108 QWriteLocker l(&m_lock);
109 m_ownAircraft.setSituation(situation);
115 QWriteLocker l(&m_lock);
116 m_ownAircraft.setParts(parts);
120 bool COwnAircraftProviderDummy::updateOwnCG(
const CLength &cg)
122 QWriteLocker l(&m_lock);
123 return m_ownAircraft.setCG(cg);
126 bool COwnAircraftProviderDummy::updateOwnCallsign(
const CCallsign &callsign)
128 QWriteLocker l(&m_lock);
129 m_ownAircraft.setCallsign(callsign);
136 QWriteLocker l(&m_lock);
137 m_ownAircraft.setIcaoCodes(aircraftIcaoCode, airlineIcaoCode);
Value object encapsulating information identifying a component of a modular distributed swift process...
Value object for ICAO classification.
Value object encapsulating information of aircraft's parts.
Value object encapsulating information of an aircraft's situation.
Value object for ICAO classification.
Value object encapsulating information of a callsign.
static bool isValidComFrequency(const physical_quantities::CFrequency &f)
Valid COM frequency (either civil or military)
void setFrequencyActive(const physical_quantities::CFrequency &frequency)
Set active frequency.
Geodetic coordinate, a position in 3D space relative to the reference geoid.
Physical unit length (length)
Aircraft model (used by another pilot, my models on disk)
Comprehensive information of an aircraft.