launchdetection use BlockParamBool for LAUN_ALL_ON

This commit is contained in:
Daniel Agar 2017-12-20 15:49:48 -05:00 committed by Beat Küng
parent a9bbbdce82
commit 3d7afaafbd

View File

@ -61,7 +61,7 @@ public:
void update(float accel_x);
LaunchDetectionResult getLaunchDetected();
bool launchDetectionEnabled() { return launchdetection_on.get() == 1; }
bool launchDetectionEnabled() { return launchdetection_on.get(); }
/* Returns a maximum pitch in deg. Different launch methods may impose upper pitch limits during launch */
float getPitchMax(float pitchMaxDefault);
@ -77,7 +77,7 @@ private:
LaunchMethod *launchMethods[1];
control::BlockParamInt launchdetection_on;
control::BlockParamBool launchdetection_on;
};
} // namespace launchdetection