diff options
Diffstat (limited to 'src/drone_controller.hh')
-rw-r--r-- | src/drone_controller.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drone_controller.hh b/src/drone_controller.hh index 6099e08..3c09089 100644 --- a/src/drone_controller.hh +++ b/src/drone_controller.hh @@ -25,6 +25,8 @@ class DroneController : public QObject, public Painter { QMap<int, QVector<QPair<int, int>>> collisions; bool draw_trajectories = false; bool draw_guides = false; + QMap<int, QVector<int>> speed_violations; + double speed_limit = 0; static OpenGLMesh *sphere; static const unsigned char sphere_neutral[]; @@ -44,6 +46,7 @@ signals: void playing(); void pausing(); void collision(int idA, int idB, int frame); + void speedViolation(int id, double speed, int frame); private slots: void step(); @@ -55,6 +58,7 @@ public slots: void resume(); void seek(int frame); void computeCollisions(double sphere_radius); + void computeSpeedingViolations(double speed); void displaySpheres(double sphere_radius); void setDrawTrajectories(bool enable); void setDrawGuides(bool enable); |