42 #include <px4_platform_common/defines.h> 70 virtual ~
BlockP() =
default;
73 return getKP() * input;
76 float getKP() {
return _kP.get(); }
BlockP(SuperBlock *parent, const char *name)
control::BlockParamFloat _kP
A proportional controller.
float update(float input)