diff options
author | ccolin | 2021-01-04 15:09:38 +0100 |
---|---|---|
committer | ccolin | 2021-01-04 15:09:38 +0100 |
commit | 81108c1b0fa8f710ff7417476c10c83e70ae7a15 (patch) | |
tree | d03ba3ff458f79b104b8b62181b9775c8e035342 /src/main_window.cc | |
parent | 0c28d9dc80e634ebfbabed5ad446b6a4f82056e3 (diff) |
properly honor default values of sphere radius and speed limit
Diffstat (limited to 'src/main_window.cc')
-rw-r--r-- | src/main_window.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main_window.cc b/src/main_window.cc index 39261dd..ad3a7fe 100644 --- a/src/main_window.cc +++ b/src/main_window.cc @@ -92,11 +92,13 @@ void MainWindow::open(const QString &path) { dc, &DroneController::computeCollisions); connect(settings_pane, &SettingsPane::sphereRadiusChanged, dc, &DroneController::displaySpheres); + dc->computeCollisions(settings_pane->getSphereRadius()); connect(settings_pane, &SettingsPane::speedLimitChanged, [&](double _) { Q_UNUSED(_); settings_pane->clearSpeedingViolations(); }); connect(settings_pane, &SettingsPane::speedLimitChanged, dc, &DroneController::computeSpeedingViolations); + dc->computeSpeedingViolations(settings_pane->getSpeedLimit()); connect(settings_pane, &SettingsPane::toggledTrajectories, dc, &DroneController::setDrawTrajectories); |