mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-08 23:04:19 +08:00
Compare commits
1 Commits
sync+tg
...
toyota-acc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2faa9e0069 |
@@ -136,6 +136,7 @@ inline static std::unordered_map<std::string, uint32_t> keys = {
|
||||
{"CustomAccShortPressIncrement", PERSISTENT | BACKUP},
|
||||
{"DeviceBootMode", PERSISTENT | BACKUP},
|
||||
{"EnableGithubRunner", PERSISTENT | BACKUP},
|
||||
{"FlipAccIncrements", PERSISTENT | BACKUP},
|
||||
{"MaxTimeOffroad", PERSISTENT | BACKUP},
|
||||
{"Brightness", PERSISTENT | BACKUP},
|
||||
{"ModelRunnerTypeCache", CLEAR_ON_ONROAD_TRANSITION},
|
||||
|
||||
Submodule opendbc_repo updated: c87940a6b5...e8a8f80574
@@ -8,6 +8,13 @@
|
||||
#include "selfdrive/ui/sunnypilot/qt/offroad/settings/vehicle/toyota_settings.h"
|
||||
|
||||
ToyotaSettings::ToyotaSettings(QWidget *parent) : BrandSettingsInterface(parent) {
|
||||
toyotaFlipACC = new ParamControlSP(
|
||||
"FlipAccIncrements",
|
||||
tr("Flip ACC Increments"),
|
||||
tr("Enabling this flips the Short & Long press ACC increments."),
|
||||
"",
|
||||
this);
|
||||
list->addItem(toyotaFlipACC);
|
||||
}
|
||||
|
||||
void ToyotaSettings::updateSettings() {
|
||||
|
||||
@@ -23,4 +23,5 @@ public:
|
||||
|
||||
private:
|
||||
bool offroad = false;
|
||||
ParamControlSP *toyotaFlipACC;
|
||||
};
|
||||
|
||||
@@ -20,6 +20,11 @@ class ParamStore:
|
||||
universal_params: list[str] = []
|
||||
brand_params: list[str] = []
|
||||
|
||||
if CP.brand == "toyota":
|
||||
brand_params.extend([
|
||||
"FlipAccIncrements",
|
||||
])
|
||||
|
||||
self.keys = universal_params + brand_params
|
||||
self.values = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user