wip
This commit is contained in:
0
selfdrive/clearpilot/api/api.js
Normal file
0
selfdrive/clearpilot/api/api.js
Normal file
0
selfdrive/clearpilot/clearpilot.js
Normal file
0
selfdrive/clearpilot/clearpilot.js
Normal file
Binary file not shown.
|
Before Width: | Height: | Size: 454 KiB |
0
selfdrive/clearpilot/resource/defaults.json
Normal file
0
selfdrive/clearpilot/resource/defaults.json
Normal file
|
Before Width: | Height: | Size: 454 KiB After Width: | Height: | Size: 454 KiB |
0
selfdrive/clearpilot/resource/settings.json
Normal file
0
selfdrive/clearpilot/resource/settings.json
Normal file
@@ -65,6 +65,11 @@ class DesireHelper:
|
||||
# Clearpilot test lane change no lat
|
||||
clearpilot_disable_lat_on_lane_change = True
|
||||
|
||||
# Todo, we want to count how many lanes we have moved during this process either left or right.
|
||||
# Then, if blinker left, but we have traveled rightwards, reenable lateral and vice versa.
|
||||
# Also, if we are less than 25% twoards our lane change and we get a blind spot, reenable lateral
|
||||
# with influence back to our lane on wheel.
|
||||
|
||||
v_ego = carstate.vEgo
|
||||
one_blinker = carstate.leftBlinker != carstate.rightBlinker
|
||||
below_lane_change_speed = v_ego < LANE_CHANGE_SPEED_MIN
|
||||
|
||||
@@ -92,8 +92,7 @@ qt_webengine_libs = qt_libs + ['Qt5WebEngineWidgets']
|
||||
|
||||
# Create clearpilot tools
|
||||
qt_env.Program("/data/openpilot/system/clearpilot/tools/qt_shell", ["/data/openpilot/system/clearpilot/tools/qt_shell.cc"], LIBS=qt_libs)
|
||||
qt_env.Program("/data/openpilot/system/clearpilot/tools/qt_webview", ["/data/openpilot/system/clearpilot/tools/qt_webview.cc"], LIBS=qt_webengine_libs)
|
||||
qt_env.Program("/data/openpilot/system/clearpilot/tools/qt_webview2", ["/data/openpilot/system/clearpilot/tools/qt_webview2.cc"], LIBS=qt_webengine_libs)
|
||||
# qt_env.Program("/data/openpilot/system/clearpilot/tools/qt_webview", ["/data/openpilot/system/clearpilot/tools/qt_webview.cc"], LIBS=qt_webengine_libs)
|
||||
|
||||
# build main UI
|
||||
qt_env.Program("ui", qt_src + [asset_obj], LIBS=qt_webengine_libs)
|
||||
|
||||
@@ -192,12 +192,12 @@ OffroadHome::OffroadHome(QWidget* parent) : QFrame(parent) {
|
||||
home_layout->setContentsMargins(0, 0, 0, 0);
|
||||
home_layout->setSpacing(30);
|
||||
|
||||
// // Create a QWebEngineView
|
||||
QWebEngineView *web_view = new QWebEngineView();
|
||||
web_view->load(QUrl("http://fark.com"));
|
||||
// // // Create a QWebEngineView
|
||||
// QWebEngineView *web_view = new QWebEngineView();
|
||||
// web_view->load(QUrl("http://fark.com"));
|
||||
|
||||
// Add the QWebEngineView to the layout
|
||||
home_layout->addWidget(web_view);
|
||||
// // Add the QWebEngineView to the layout
|
||||
// home_layout->addWidget(web_view);
|
||||
}
|
||||
center_layout->addWidget(home_widget);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user