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