mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-30 19:33:45 +08:00
controls: block resume if cruise not previously engaged (#25402)
* see if this works at all * can revert this * think adding a no entry conditionally is nicer * then we can revert this * 0 makes more sense * Revert "0 makes more sense" This reverts commit efc89e8a2389ef58fbc0cec0a2872d24db524867. * gm CC uses > 70 * bump cereal * comment * test on Honda * whoops * works * add exception with todo * moved button enable events to controlsd * get rid of that get rid of that * different values for now * car interfaces add enable event, controlsd can block it * Regen and update refs * delete if not set * One place one place * regen routes are uninitialized first few frames * Trim start of segment so it's like original segment * stash * regen * not working * clean up * more cleanup * revert * bump ceral * actually check resume button * whoops * pcmCruise cars don't use setSpeed, so we're good * engage correctly in sim * Update ref_commit * Update refs old-commit-hash: 5ed587ebeff24bacf70c44879616c51756730bba
This commit is contained in:
@@ -77,7 +77,7 @@ class TestCarlaIntegration(unittest.TestCase):
|
||||
while time.monotonic() < start_time + max_time_per_step:
|
||||
sm.update()
|
||||
|
||||
q.put("cruise_up") # Try engaging
|
||||
q.put("cruise_down") # Try engaging
|
||||
|
||||
if sm.all_alive() and sm['controlsState'].active:
|
||||
control_active += 1
|
||||
|
||||
Reference in New Issue
Block a user