mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-25 12:02:05 +08:00
Add nudge notif to event builder
This commit is contained in:
@@ -48,8 +48,8 @@ def _build_banner_message(nav_msg):
|
||||
|
||||
def _get_turning_message(upcoming_turn):
|
||||
turn_messages = {
|
||||
'left': 'Turning Left',
|
||||
'right': 'Turning Right',
|
||||
'left': 'Turning Left. Make sure to nudge the wheel!',
|
||||
'right': 'Turning Right. Make sure to nudge the wheel!',
|
||||
'slightLeft': 'Keeping Left',
|
||||
'slightRight': 'Keeping Right',
|
||||
'sharpLeft': 'Sharp Left Turn',
|
||||
|
||||
@@ -45,7 +45,7 @@ class TestEventBuilder:
|
||||
events = build_navigation_events(MockSM(nav_msg))
|
||||
expected = [{
|
||||
'name': custom.OnroadEventSP.EventName.navigationBanner,
|
||||
'message': 'Turning Left',
|
||||
'message': 'Turning Left. Make sure to nudge the wheel!',
|
||||
}]
|
||||
assert events == expected
|
||||
|
||||
|
||||
Reference in New Issue
Block a user