forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
253 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule opendbc_repo
updated
3 files
+22 −14 | opendbc/car/ford/carcontroller.py | |
+3 −0 | opendbc/car/ford/interface.py | |
+6 −5 | opendbc/car/ford/values.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
22530fd1bd915d5b37db900e2ac42a9501cd5972 | ||
8f9dba78b0a2a4fbf8122f61d49e9529dba9b3b4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#include <QDebug> | ||
|
||
#include "selfdrive/ui/qt/offroad/developer_panel.h" | ||
#include "selfdrive/ui/qt/widgets/ssh_keys.h" | ||
#include "selfdrive/ui/qt/widgets/controls.h" | ||
|
||
DeveloperPanel::DeveloperPanel(SettingsWindow *parent) : ListWidget(parent) { | ||
// SSH keys | ||
addItem(new SshToggle()); | ||
addItem(new SshControl()); | ||
|
||
joystickToggle = new ParamControl("JoystickDebugMode", tr("Joystick Debug Mode"), "", ""); | ||
QObject::connect(joystickToggle, &ParamControl::toggleFlipped, [=](bool state) { | ||
params.putBool("LongitudinalManeuverMode", false); | ||
longManeuverToggle->refresh(); | ||
}); | ||
addItem(joystickToggle); | ||
|
||
longManeuverToggle = new ParamControl("LongitudinalManeuverMode", tr("Longitudinal Maneuver Mode"), "", ""); | ||
QObject::connect(longManeuverToggle, &ParamControl::toggleFlipped, [=](bool state) { | ||
params.putBool("JoystickDebugMode", false); | ||
joystickToggle->refresh(); | ||
}); | ||
addItem(longManeuverToggle); | ||
|
||
// Joystick and longitudinal maneuvers should be hidden on release branches | ||
// also the toggles should be not available to change in onroad state | ||
const bool is_release = params.getBool("IsReleaseBranch"); | ||
QObject::connect(uiState(), &UIState::offroadTransition, [=](bool offroad) { | ||
for (auto btn : findChildren<ParamControl *>()) { | ||
btn->setVisible(!is_release); | ||
btn->setEnabled(offroad); | ||
} | ||
}); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#pragma once | ||
|
||
#include "selfdrive/ui/qt/offroad/settings.h" | ||
|
||
class DeveloperPanel : public ListWidget { | ||
Q_OBJECT | ||
public: | ||
explicit DeveloperPanel(SettingsWindow *parent); | ||
|
||
private: | ||
Params params; | ||
ParamControl* joystickToggle; | ||
ParamControl* longManeuverToggle; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.