Compare commits

...

1 Commits

Author SHA1 Message Date
nayan
2faa9e0069 use cc_sp param store 2025-07-04 14:54:21 -04:00
5 changed files with 15 additions and 1 deletions

View File

@@ -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},

View File

@@ -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() {

View File

@@ -23,4 +23,5 @@ public:
private:
bool offroad = false;
ParamControlSP *toyotaFlipACC;
};

View File

@@ -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 = {}