Skip to content

Commit

Permalink
feat: get temp coil config working for shaker
Browse files Browse the repository at this point in the history
  • Loading branch information
unRARed committed Feb 23, 2025
1 parent e039dc5 commit fdd4087
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions config/common/coils.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
coils:
c_shaker_motor:
number: 3-3
default_hold_power: 1
c_trough:
number: 4-2
default_pulse_ms: 20
Expand Down
2 changes: 2 additions & 0 deletions config/common/variables.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#config_version=6

player_vars:
lap_count:
initial_value: 0
# 2 is full
# 1 is partial
# 0 is empty
Expand Down
8 changes: 5 additions & 3 deletions modes/green_flag/config/coil_player.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#config_version=6

coil_player:
logicblock_seq_lap_complete:
logicblock_seq_lap_complete{not current_player.lap_count % 2 == 0}:
c_shaker_motor:
action: pulse
hold_power: 0.5
action: on
logicblock_seq_lap_complete{current_player.lap_count % 2 == 0}:
c_shaker_motor:
action: off
4 changes: 3 additions & 1 deletion modes/pit/config/variable_player.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ variable_player:
s_outlane2_active:
score: 50

logicblock_seq_lap_complete:
lap_count: 1

##########################
## Wizard-mode Progress ##
##########################
Expand All @@ -87,4 +90,3 @@ variable_player:
grooveline_counter_count:
action: set
int: 0

0 comments on commit fdd4087

Please sign in to comment.