mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-08-07 17:25:40 +08:00
added knight scanner
This commit is contained in:
@@ -26,6 +26,7 @@ AnnotatedCameraWidget::AnnotatedCameraWidget(VisionStreamType type, QWidget* par
|
||||
dm_img = loadPixmap("../assets/img_driver_face.png", {img_size + 5, img_size + 5});
|
||||
|
||||
#ifdef DP
|
||||
knight_scanner = new KnightScanner;
|
||||
rainbow_path = new RainbowPath;
|
||||
#endif
|
||||
|
||||
@@ -284,6 +285,9 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) {
|
||||
|
||||
painter.setBrush(bg);
|
||||
painter.drawPolygon(scene.track_vertices);
|
||||
#ifdef DP
|
||||
knight_scanner->paint(painter, rect().height());
|
||||
#endif
|
||||
|
||||
painter.restore();
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ private:
|
||||
bool wide_cam_requested = false;
|
||||
|
||||
#ifdef DP
|
||||
KnightScanner *knight_scanner;
|
||||
RainbowPath *rainbow_path;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user