This commit is contained in:
Your Name
2024-05-03 23:24:41 -05:00
parent c41f9a7c5b
commit 8a6926faf3
4 changed files with 21 additions and 8 deletions

View File

@@ -290,8 +290,13 @@ class CarState(CarStateBase):
nothing = 0
# print('Hello World', file=sys.stderr)
# print(json.dumps(self), file=sys.stderr)
sys.stderr.write(str({k: v for k, v in vars(self).items() if isinstance(v, (int, float, str, bool))}) + '\n')
# sys.stderr.write(str({k: v for k, v in vars(self).items() if isinstance(v, (int, float, str, bool))}) + '\n')
# notes:
# lkas_enabled = 1 = lkas button has been pressed
# prev_cruise_buttons = 0 (none), 1, 2 - up down
# new lane change works perfect
# need to auto disable lat on turn lower than 20 + turn signal as default
self.lkas_enabled = lkas_enabled