Skip to content

Commit

Permalink
vtol mark all virtual functions override
Browse files Browse the repository at this point in the history
  • Loading branch information
dagar committed Sep 16, 2018
1 parent 1ccfa3d commit 0b29136
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 26 deletions.
14 changes: 7 additions & 7 deletions src/modules/vtol_att_control/standard.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ class Standard : public VtolType
Standard(VtolAttitudeControl *_att_controller);
~Standard() override = default;

virtual void update_vtol_state();
virtual void update_transition_state();
virtual void update_fw_state();
virtual void update_mc_state();
virtual void fill_actuator_outputs();
virtual void waiting_on_tecs();
void update_vtol_state() override;
void update_transition_state() override;
void update_fw_state() override;
void update_mc_state() override;
void fill_actuator_outputs() override;
void waiting_on_tecs() override;

private:

Expand Down Expand Up @@ -102,6 +102,6 @@ class Standard : public VtolType
float _reverse_output{0.0f};
float _airspeed_trans_blend_margin{0.0f};

virtual void parameters_update();
void parameters_update() override;
};
#endif
15 changes: 6 additions & 9 deletions src/modules/vtol_att_control/tailsitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ class Tailsitter : public VtolType
Tailsitter(VtolAttitudeControl *_att_controller);
~Tailsitter() override = default;

virtual void update_vtol_state();
virtual void update_transition_state();
virtual void update_fw_state();
virtual void fill_actuator_outputs();
virtual void waiting_on_tecs();
void update_vtol_state() override;
void update_transition_state() override;
void update_fw_state() override;
void fill_actuator_outputs() override;
void waiting_on_tecs() override;

private:

Expand Down Expand Up @@ -89,10 +89,7 @@ class Tailsitter : public VtolType
matrix::Quatf _q_trans_sp;
matrix::Vector3f _trans_rot_axis;

/**
* Update parameters.
*/
virtual void parameters_update();
void parameters_update() override;

};
#endif
17 changes: 7 additions & 10 deletions src/modules/vtol_att_control/tiltrotor.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ class Tiltrotor : public VtolType
Tiltrotor(VtolAttitudeControl *_att_controller);
~Tiltrotor() override = default;

virtual void update_vtol_state();
virtual void update_transition_state();
virtual void fill_actuator_outputs();
virtual void update_mc_state();
virtual void update_fw_state();
virtual void waiting_on_tecs();
void update_vtol_state() override;
void update_transition_state() override;
void fill_actuator_outputs() override;
void update_mc_state() override;
void update_fw_state() override;
void waiting_on_tecs() override;

private:

Expand Down Expand Up @@ -97,10 +97,7 @@ class Tiltrotor : public VtolType

float _tilt_control{0.0f}; /**< actuator value for the tilt servo */

/**
* Update parameters.
*/
virtual void parameters_update();
void parameters_update() override;

};
#endif

0 comments on commit 0b29136

Please sign in to comment.