Skip to content

Commit 69e57eb

Browse files
committed
Remove lateral toggle
1 parent c7cfe5d commit 69e57eb

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

common/params.cc

-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ std::unordered_map<std::string, uint32_t> keys = {
105105
{"DoShutdown", CLEAR_ON_MANAGER_START},
106106
{"DoUninstall", CLEAR_ON_MANAGER_START},
107107
{"EnableWideCamera", CLEAR_ON_MANAGER_START},
108-
{"EndToEndToggle", PERSISTENT},
109108
{"ForcePowerDown", CLEAR_ON_MANAGER_START},
110109
{"GitBranch", PERSISTENT},
111110
{"GitCommit", PERSISTENT},

selfdrive/controls/plannerd.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def plannerd_thread(sm=None, pm=None):
1717
CP = car.CarParams.from_bytes(params.get("CarParams", block=True))
1818
cloudlog.info("plannerd got CarParams: %s", CP.carName)
1919

20-
use_lanelines = not params.get_bool('EndToEndToggle')
20+
#TODO remove laneline support
21+
use_lanelines = False
2122
wide_camera = params.get_bool('EnableWideCamera') if TICI else False
2223

2324
cloudlog.event("e2e mode", on=use_lanelines)

selfdrive/ui/qt/offroad/settings.cc

-6
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ TogglesPanel::TogglesPanel(SettingsWindow *parent) : ListWidget(parent) {
5757
"Upload data from the driver facing camera and help improve the driver monitoring algorithm.",
5858
"../assets/offroad/icon_monitoring.png",
5959
},
60-
{
61-
"EndToEndToggle",
62-
"\U0001f96c Disable use of lanelines (Alpha) \U0001f96c",
63-
"In this mode openpilot will ignore lanelines and just drive how it thinks a human would.",
64-
"../assets/offroad/icon_road.png",
65-
},
6660
{
6761
"DisengageOnAccelerator",
6862
"Disengage On Accelerator Pedal",

selfdrive/ui/ui.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void UIState::updateStatus() {
221221
if (scene.started) {
222222
status = STATUS_DISENGAGED;
223223
scene.started_frame = sm->frame;
224-
scene.end_to_end = Params().getBool("EndToEndToggle");
224+
scene.end_to_end = true;
225225
wide_camera = Hardware::TICI() ? Params().getBool("EnableWideCamera") : false;
226226
}
227227
started_prev = scene.started;

0 commit comments

Comments
 (0)