1
0
Fork 0

Reset function for when reseting sim.

This commit is contained in:
curt 1999-04-27 15:42:53 +00:00
parent 6f55cae2cc
commit 749819ec0b
2 changed files with 13 additions and 0 deletions

View file

@ -44,6 +44,16 @@ FGControls::FGControls() :
}
void FGControls::reset_all()
{
controls.set_aileron(0.0);
controls.set_elevator(0.0);
controls.set_elevator_trim(0.0);
controls.set_rudder(0.0);
controls.set_throttle(FGControls::ALL_ENGINES, 0.0);
}
// Destructor
FGControls::~FGControls() {
}

View file

@ -62,6 +62,9 @@ public:
FGControls();
~FGControls();
// Reset function
void reset_all(void);
// Query functions
inline double get_aileron() const { return aileron; }
inline double get_elevator() const { return elevator; }