1
0
Fork 0
flightgear/src/FDM/YASim/SimpleJet.cpp
david ad79ee4897 Added minimal support for magnetos, so that engines can be shut off.
The starter isn't working yet, so the engine just springs to life.
2002-02-20 04:27:22 +00:00

56 lines
692 B
C++

#include "Math.hpp"
#include "SimpleJet.hpp"
namespace yasim {
SimpleJet::SimpleJet()
{
_thrust = 0;
}
void SimpleJet::setThrust(float thrust)
{
_thrust = thrust;
}
bool SimpleJet::isRunning()
{
return true;
}
bool SimpleJet::isCranking()
{
return false;
}
void SimpleJet::getThrust(float* out)
{
Math::mul3(_thrust * _throttle, _dir, out);
}
void SimpleJet::getTorque(float* out)
{
out[0] = out[1] = out[2] = 0;
}
void SimpleJet::getGyro(float* out)
{
out[0] = out[1] = out[2] = 0;
}
float SimpleJet::getFuelFlow()
{
return 0;
}
void SimpleJet::integrate(float dt)
{
return;
}
void SimpleJet::stabilize()
{
return;
}
}; // namespace yasim