Torque Lateral Control: Refactor settings (#300)

* Torque Lateral Control: Refactor settings

* don't need this

* only offroad allowed

* Don't need this

* allow when offroad

* gate them

* flipped

* handle them better

* cleaner

* remove duplicate

* toggle checks cleanup

* 2.5 second check

* trigger refresh when going offroad

* cleanup

* move toggle

* update title and description

* fix ampersand

* update live torque toggle

* live torqued every 2.5 second
This commit is contained in:
Jason Wen
2023-09-29 02:36:55 -04:00
committed by GitHub
parent 71fc267606
commit 613d5b4aba
9 changed files with 91 additions and 57 deletions
+2
View File
@@ -259,6 +259,7 @@ std::unordered_map<std::string, uint32_t> keys = {
{"LastCarModel", PERSISTENT},
{"LastSpeedLimitSignTap", PERSISTENT},
{"LiveTorque", PERSISTENT},
{"LiveTorqueRelaxed", PERSISTENT},
{"LkasToggle", PERSISTENT},
{"MadsCruiseMain", PERSISTENT},
{"MadsIconToggle", PERSISTENT},
@@ -294,6 +295,7 @@ std::unordered_map<std::string, uint32_t> keys = {
{"TorqueDeadzoneDeg", PERSISTENT},
{"TorqueFriction", PERSISTENT},
{"TorqueMaxLatAccel", PERSISTENT},
{"TorquedOverride", PERSISTENT},
{"ToyotaSnG", PERSISTENT},
{"ToyotaTSS2Long", PERSISTENT},
{"TrueVEgoUi", PERSISTENT},