aboutsummaryrefslogtreecommitdiff
path: root/src/drone_controller.hh
diff options
context:
space:
mode:
authorccolin2021-01-04 14:49:26 +0100
committerccolin2021-01-04 14:49:26 +0100
commit0c28d9dc80e634ebfbabed5ad446b6a4f82056e3 (patch)
tree498a6b8ce12305a2d7531396767852a07f564b7d /src/drone_controller.hh
parent472e291ca823910418919eac101f26e2b3d852a8 (diff)
add speeding violation reporting
Diffstat (limited to 'src/drone_controller.hh')
-rw-r--r--src/drone_controller.hh4
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);