Browse Source

AC_PID: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
zr-v5.1
Patrick José Pereira 4 years ago committed by Andrew Tridgell
parent
commit
f9732b6c70
  1. 4
      libraries/AC_PID/AC_PI.h

4
libraries/AC_PID/AC_PI.h

@ -18,10 +18,10 @@ public: @@ -18,10 +18,10 @@ public:
// parameter var table
static const struct AP_Param::GroupInfo var_info[];
float get_P() {
float get_P() const {
return output_P;
}
float get_I() {
float get_I() const {
return integrator;
}

Loading…
Cancel
Save