Reset function for when reseting sim.
This commit is contained in:
parent
6f55cae2cc
commit
749819ec0b
2 changed files with 13 additions and 0 deletions
|
@ -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() {
|
||||
}
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue