mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 20:03:34 +08:00
fw_pos_control_l1: pass time through from run
This commit is contained in:
@@ -68,11 +68,11 @@ void LaunchDetector::reset()
|
||||
_activeLaunchDetectionMethodIndex = -1;
|
||||
}
|
||||
|
||||
void LaunchDetector::update(float accel_x)
|
||||
void LaunchDetector::update(const float dt, float accel_x)
|
||||
{
|
||||
if (launchDetectionEnabled()) {
|
||||
for (const auto launchMethod : _launchMethods) {
|
||||
launchMethod->update(accel_x);
|
||||
launchMethod->update(dt, accel_x);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user