fw_pos_ctrl_l1 var naming consistency and effc++

This commit is contained in:
Daniel Agar
2016-07-12 23:40:39 +02:00
committed by Lorenz Meier
parent ebce725720
commit de14418e93
14 changed files with 256 additions and 171 deletions
+4 -2
View File
@@ -55,7 +55,10 @@ class __EXPORT LaunchDetector : public control::SuperBlock
{
public:
LaunchDetector();
~LaunchDetector();
LaunchDetector(const LaunchDetector &) = delete;
LaunchDetector operator=(const LaunchDetector &) = delete;
virtual ~LaunchDetector();
void reset();
void update(float accel_x);
@@ -80,7 +83,6 @@ private:
control::BlockParamInt launchdetection_on;
control::BlockParamFloat throttlePreTakeoff;
};
}
+2
View File
@@ -58,6 +58,8 @@ enum LaunchDetectionResult {
class LaunchMethod
{
public:
virtual ~LaunchMethod() {};
virtual void update(float accel_x) = 0;
virtual LaunchDetectionResult getLaunchDetected() const = 0;
virtual void reset() = 0;