mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Fixed typo setGroundSpeed
This commit is contained in:
@@ -22,12 +22,12 @@ namespace BlackMisc
|
||||
|
||||
CAircraftSituation::CAircraftSituation(const CCoordinateGeodetic &position, const CAltitude &altitude, const CHeading &heading, const CAngle &pitch, const CAngle &bank, const CSpeed &gs)
|
||||
: m_position(position), m_altitude(altitude), m_heading(heading), m_pitch(pitch),
|
||||
m_bank(bank), m_groundspeed(gs) {}
|
||||
m_bank(bank), m_groundSpeed(gs) {}
|
||||
|
||||
CAircraftSituation::CAircraftSituation(const CCallsign &correspondingCallsign, const CCoordinateGeodetic &position, const CAltitude &altitude, const CHeading &heading, const CAngle &pitch, const CAngle &bank, const CSpeed &gs)
|
||||
: m_correspondingCallsign(correspondingCallsign),
|
||||
m_position(position), m_altitude(altitude), m_heading(heading), m_pitch(pitch),
|
||||
m_bank(bank), m_groundspeed(gs)
|
||||
m_bank(bank), m_groundSpeed(gs)
|
||||
{
|
||||
m_correspondingCallsign.setTypeHint(CCallsign::Aircraft);
|
||||
}
|
||||
@@ -38,7 +38,7 @@ namespace BlackMisc
|
||||
s.append(" altitude: ").append(this->m_altitude.toQString(i18n));
|
||||
s.append(" bank: ").append(this->m_bank.toQString(i18n));
|
||||
s.append(" pitch: ").append(this->m_pitch.toQString(i18n));
|
||||
s.append(" gs: ").append(this->m_groundspeed.toQString(i18n));
|
||||
s.append(" gs: ").append(this->m_groundSpeed.toQString(i18n));
|
||||
s.append(" heading: ").append(this->m_heading.toQString(i18n));
|
||||
s.append(" timestamp: ").append(this->getFormattedUtcTimestampDhms());
|
||||
return s;
|
||||
@@ -70,7 +70,7 @@ namespace BlackMisc
|
||||
case IndexBank:
|
||||
return this->m_bank.propertyByIndex(index.copyFrontRemoved());
|
||||
case IndexGroundspeed:
|
||||
return this->m_groundspeed.propertyByIndex(index.copyFrontRemoved());
|
||||
return this->m_groundSpeed.propertyByIndex(index.copyFrontRemoved());
|
||||
case IndexCallsign:
|
||||
return this->m_correspondingCallsign.propertyByIndex(index.copyFrontRemoved());
|
||||
default:
|
||||
@@ -103,7 +103,7 @@ namespace BlackMisc
|
||||
this->m_bank.setPropertyByIndex(variant, index.copyFrontRemoved());
|
||||
break;
|
||||
case IndexGroundspeed:
|
||||
this->m_groundspeed.setPropertyByIndex(variant, index.copyFrontRemoved());
|
||||
this->m_groundSpeed.setPropertyByIndex(variant, index.copyFrontRemoved());
|
||||
break;
|
||||
case IndexCallsign:
|
||||
this->m_correspondingCallsign.setPropertyByIndex(variant, index.copyFrontRemoved());
|
||||
|
||||
@@ -131,11 +131,11 @@ namespace BlackMisc
|
||||
//! Set bank (angle)
|
||||
void setBank(const BlackMisc::PhysicalQuantities::CAngle &bank) { this->m_bank = bank; }
|
||||
|
||||
//! Get groundspeed
|
||||
const BlackMisc::PhysicalQuantities::CSpeed &getGroundSpeed() const { return this->m_groundspeed; }
|
||||
//! Get ground speed
|
||||
const BlackMisc::PhysicalQuantities::CSpeed &getGroundSpeed() const { return this->m_groundSpeed; }
|
||||
|
||||
//! Set groundspeed
|
||||
void setGroundspeed(const BlackMisc::PhysicalQuantities::CSpeed &groundspeed) { this->m_groundspeed = groundspeed; }
|
||||
//! Set ground speed
|
||||
void setGroundSpeed(const BlackMisc::PhysicalQuantities::CSpeed &groundspeed) { this->m_groundSpeed = groundspeed; }
|
||||
|
||||
//! Corresponding callsign
|
||||
const BlackMisc::Aviation::CCallsign &getCallsign() const { return this->m_correspondingCallsign; }
|
||||
@@ -153,7 +153,7 @@ namespace BlackMisc
|
||||
BlackMisc::Aviation::CHeading m_heading;
|
||||
BlackMisc::PhysicalQuantities::CAngle m_pitch;
|
||||
BlackMisc::PhysicalQuantities::CAngle m_bank;
|
||||
BlackMisc::PhysicalQuantities::CSpeed m_groundspeed;
|
||||
BlackMisc::PhysicalQuantities::CSpeed m_groundSpeed;
|
||||
|
||||
BLACK_METACLASS(
|
||||
CAircraftSituation,
|
||||
@@ -163,7 +163,7 @@ namespace BlackMisc
|
||||
BLACK_METAMEMBER(heading),
|
||||
BLACK_METAMEMBER(pitch),
|
||||
BLACK_METAMEMBER(bank),
|
||||
BLACK_METAMEMBER(groundspeed),
|
||||
BLACK_METAMEMBER(groundSpeed),
|
||||
BLACK_METAMEMBER(timestampMSecsSinceEpoch)
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user