fw_pos_control_l1: pass time through from run

This commit is contained in:
Daniel Agar
2020-08-10 10:51:52 -04:00
parent 258e5ca5c9
commit 560c22e612
9 changed files with 72 additions and 82 deletions
@@ -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);
}
}
}