FlightGear
next
SimpleJet.cpp
Go to the documentation of this file.
1
#include "Math.hpp"
2
#include "SimpleJet.hpp"
3
4
namespace
yasim
{
5
6
SimpleJet::SimpleJet()
7
{
8
_thrust = 0;
9
}
10
11
void
SimpleJet::setThrust(
float
thrust)
12
{
13
_thrust = thrust;
14
}
15
16
bool
SimpleJet::isRunning()
17
{
18
return
true
;
19
}
20
21
bool
SimpleJet::isCranking()
22
{
23
return
false
;
24
}
25
26
void
SimpleJet::getThrust(
float
* out)
27
{
28
Math::mul3(_thrust * _throttle, _dir, out);
29
}
30
31
void
SimpleJet::getTorque(
float
* out)
32
{
33
out[0] = out[1] = out[2] = 0;
34
}
35
36
void
SimpleJet::getGyro(
float
* out)
37
{
38
out[0] = out[1] = out[2] = 0;
39
}
40
41
float
SimpleJet::getFuelFlow()
42
{
43
return
0;
44
}
45
46
void
SimpleJet::integrate(
float
dt)
47
{
48
return
;
49
}
50
51
void
SimpleJet::stabilize()
52
{
53
return
;
54
}
55
56
};
// namespace yasim
yasim
Definition
Airplane.cpp:18
src
FDM
YASim
SimpleJet.cpp
Generated on Tue Jun 3 2025 12:58:38 for FlightGear by
1.13.2