mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 14:45:42 +08:00
blacklib folder reorganisation
This commit is contained in:
36
src/blackcore/plane.cpp
Normal file
36
src/blackcore/plane.cpp
Normal file
@@ -0,0 +1,36 @@
|
||||
#include <blackcore/interpolator.h>
|
||||
#include <blackcore/simulator.h>
|
||||
#include <blackmisc/debug.h>
|
||||
#include "blackcore/plane.h"
|
||||
|
||||
namespace BlackCore {
|
||||
|
||||
CPlane::CPlane()
|
||||
: m_interpolator(NULL), m_driver(NULL)
|
||||
{
|
||||
}
|
||||
|
||||
CPlane::CPlane(const QString &callsign, ISimulator *driver)
|
||||
: m_callsign(callsign), m_interpolator(NULL), m_driver(driver)
|
||||
{
|
||||
m_interpolator = new CInterpolator();
|
||||
|
||||
bAssert(m_interpolator);
|
||||
bAssert(driver);
|
||||
}
|
||||
|
||||
void CPlane::addPosition(const CVectorGeo &position, double groundVelocity, double heading, double pitch, double bank)
|
||||
{
|
||||
bAssert(m_interpolator);
|
||||
|
||||
m_interpolator->pushUpdate(position, groundVelocity, heading, pitch, bank);
|
||||
}
|
||||
|
||||
void CPlane::render()
|
||||
{
|
||||
//m_driver->updatePositionAndSpeed();
|
||||
}
|
||||
|
||||
|
||||
|
||||
} // namespace BlackCore
|
||||
Reference in New Issue
Block a user