mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
Ref T709, further aircraft camera pos. checks and init zoom to 1.0
Attempts to avoid the follow aircraft crash
This commit is contained in:
committed by
Mat Sutcliffe
parent
4a0101feed
commit
73b8e606e2
@@ -187,13 +187,26 @@ namespace XSwiftBus
|
||||
const std::string &livery_, const std::string &modelName_);
|
||||
};
|
||||
|
||||
//! Check the position if values are valid
|
||||
//! Check functions @{
|
||||
static bool isPlusMinusOne(float v);
|
||||
static bool isPlusMinus180(float v);
|
||||
static bool isPlusMinus180(double v);
|
||||
//! @}
|
||||
|
||||
//! Check the position if values are valid @{
|
||||
static bool isValidPosition(const XPMPPlanePosition_t &position);
|
||||
static bool isValidPosition(const XPLMCameraPosition_t *camPos);
|
||||
//! @}
|
||||
|
||||
//! Pos as string @{
|
||||
static std::string pos2String(const XPMPPlanePosition_t &position);
|
||||
static std::string pos2String(const XPLMCameraPosition_t *camPos);
|
||||
//! @}
|
||||
|
||||
std::unordered_map<std::string, Plane *> m_planesByCallsign;
|
||||
std::unordered_map<void *, Plane *> m_planesById;
|
||||
std::vector<std::string> m_followPlaneViewSequence;
|
||||
std::chrono::system_clock::time_point m_timestampLastSimFrame = std::chrono::system_clock::now();
|
||||
// std::chrono::system_clock::time_point m_timestampLastSimFrame = std::chrono::system_clock::now();
|
||||
|
||||
CMenu m_followPlaneViewSubMenu;
|
||||
std::unordered_map<std::string, CMenuItem> m_followPlaneViewMenuItems;
|
||||
|
||||
Reference in New Issue
Block a user