Hello!
Is there a way to configure OPP to support flipper end-of-stroke switches? As of the latest mpf dev branch commit 9f90c8b15, and OPP firmware 2.4.0.0, when trying to use flippers configured with EOS switches, mpf throws the exception AssertionError("Not implemented in OPP currently"):
2023-07-15 15:52:06,037 : INFO : EventManager : Event: ======'mode_base_starting'====== Args={'player': 1, 'ball': 1, 'balls_remaining': 0, 'is_extra_ball': False}
2023-07-15 15:52:06,041 : ERROR : asyncio : Exception in callback EventManager.process_event_queue()
handle: <Handle EventManager.process_event_queue()>
Traceback (most recent call last):
File "/home/odroid/mpf/mpf/core/events.py", line 745, in _run_handlers
result = handler.callback(**merged_kwargs)
File "/home/odroid/mpf/mpf/devices/flipper.py", line 58, in event_enable
self.enable()
File "/home/odroid/mpf/mpf/devices/flipper.py", line 113, in enable
self._enable_main_coil_eos_cutoff_rule()
File "/home/odroid/mpf/mpf/devices/flipper.py", line 226, in _enable_main_coil_eos_cutoff_rule
rule = self.machine.platform_controller.set_pulse_on_hit_and_release_and_disable_rule(
File "/home/odroid/mpf/mpf/core/platform_controller.py", line 370, in set_pulse_on_hit_and_release_and_disable_rule
platform.set_pulse_on_hit_and_release_and_disable_rule(
File "/home/odroid/mpf/mpf/platforms/opp/opp.py", line 1034, in set_pulse_on_hit_and_release_and_disable_rule
raise AssertionError("Not implemented in OPP currently")
AssertionError: Not implemented in OPP currently
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/home/odroid/mpf/mpf/core/events.py", line 836, in process_event_queue
self._process_event(event=event[0],
File "/home/odroid/mpf/mpf/core/events.py", line 798, in _process_event
result = self._run_handlers(event, ev_type, kwargs)
File "/home/odroid/mpf/mpf/core/events.py", line 747, in _run_handlers
raise EventHandlerException(
mpf.core.events.EventHandlerException: Exception while processing RegisteredHandler(callback=<bound method Flipper.event_enable of <flipper.flipper_left>>, priority=2, kwargs={}, key=UUID('8fa5c6c4-6c14-4a0e-81fa-8094881989b0'), condition=None, blocking_facility=None) for event ball_started. Not implemented in OPP currently
My flipper configuration is:
flippers:
flipper_left:
main_coil: c_flipper_left_main
hold_coil: c_flipper_left_hold
activation_switch: s_flipper_left
eos_switch: s_flipper_left_EOS
use_eos: true
label: Left Flipper
flipper_right:
main_coil: c_flipper_right_main
hold_coil: c_flipper_right_hold
activation_switch: s_flipper_right
eos_switch: s_flipper_right_EOS
use_eos: true
label: Right Flipper
Thank you!