mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 11:43:34 +08:00
launchdetection use BlockParamBool for LAUN_ALL_ON
This commit is contained in:
@@ -61,7 +61,7 @@ public:
|
|||||||
|
|
||||||
void update(float accel_x);
|
void update(float accel_x);
|
||||||
LaunchDetectionResult getLaunchDetected();
|
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 */
|
/* Returns a maximum pitch in deg. Different launch methods may impose upper pitch limits during launch */
|
||||||
float getPitchMax(float pitchMaxDefault);
|
float getPitchMax(float pitchMaxDefault);
|
||||||
@@ -77,7 +77,7 @@ private:
|
|||||||
|
|
||||||
LaunchMethod *launchMethods[1];
|
LaunchMethod *launchMethods[1];
|
||||||
|
|
||||||
control::BlockParamInt launchdetection_on;
|
control::BlockParamBool launchdetection_on;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace launchdetection
|
} // namespace launchdetection
|
||||||
|
|||||||
Reference in New Issue
Block a user