sequence_shots and shot_groups?

26 views
Skip to first unread message

Greg Sealby

unread,
Apr 24, 2019, 11:13:02 PM4/24/19
to MPF Users
I'm having an issue where it seems I can't use a sequence_shot in a shot_group.  

I get the following error:
Device left_orbit_shot of type shots not defined Error Code: CFE-ConfigValidator-6

I'm trying to add my orbit shot into a shot group for one of my modes.  It has two rollover switches.

If I have to configure shots with switches I can't see how I can use the orbit shot in the shot_group.

Is there something I need to change, or is there a better way to do this?

jabdoa

unread,
Apr 25, 2019, 1:59:03 AM4/25/19
to MPF Users
Shot groups only support shots. But you can use a sequence_shot in a shot (via its event) and put that shot into the group.


Jan

Greg Sealby

unread,
Apr 25, 2019, 7:42:44 AM4/25/19
to MPF Users
Thanks Jan, that works.

I added a shots: section to my mode and used the hit_events: setting to reference my sequence_shot that I created in my base mode.

Here's my code:

shots:
    shot_hc_left_horseshoe:
        hit_events: shot_left_horseshoe_hit
    shot_hc_right_horseshoe:
        hit_events: shot_right_horseshoe_hit
    shot_hc_orbit_left:
        hit_events: shot_orbit_left_hit
    shot_hc_orbit_right:
        hit_events: shot_orbit_right_hit
    shot_hc_dt:
        hit_events: shot_dt_complete
    shot_hc_tow:
        hit_events: shot_tow_hit

shot_groups:
    shot_hc_1:
        shots: shot_hc_left_horseshoe, shot_hc_orbit_left, shot_hc_dt

I hope this helps others.



jabdoa

unread,
Apr 28, 2019, 1:29:52 PM4/28/19
to MPF Users
Reply all
Reply to author
Forward
0 new messages