-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4b8b12
commit e1caaf2
Showing
22 changed files
with
395 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
module Devices | ||
module Seeders | ||
class GenesisOneSeven < AbstractGenesis | ||
def settings_firmware | ||
device | ||
.fbos_config | ||
.update!(firmware_hardware: FbosConfig::FARMDUINO_K17) | ||
end | ||
|
||
def settings_change_firmware_config_defaults | ||
end | ||
|
||
def peripherals_rotary_tool | ||
add_peripheral(2, ToolNames::ROTARY_TOOL) | ||
end | ||
|
||
def peripherals_rotary_tool_reverse | ||
add_peripheral(3, ToolNames::ROTARY_TOOL_REVERSE) | ||
end | ||
|
||
def tool_slots_slot_7 | ||
add_tool_slot(name: ToolNames::ROTARY_TOOL, | ||
x: 50, | ||
y: 800, | ||
z: -200, | ||
tool: tools_rotary) | ||
end | ||
|
||
def tool_slots_slot_8 | ||
add_tool_slot(name: ToolNames::SEED_TROUGH_1, | ||
x: 0, | ||
y: 25, | ||
z: -100, | ||
tool: tools_seed_trough_1, | ||
pullout_direction: ToolSlot::NONE, | ||
gantry_mounted: true) | ||
end | ||
|
||
def tool_slots_slot_9 | ||
add_tool_slot(name: ToolNames::SEED_TROUGH_2, | ||
x: 0, | ||
y: 50, | ||
z: -100, | ||
tool: tools_seed_trough_2, | ||
pullout_direction: ToolSlot::NONE, | ||
gantry_mounted: true) | ||
end | ||
|
||
def tools_rotary | ||
@tools_rotary ||= | ||
add_tool(ToolNames::ROTARY_TOOL) | ||
end | ||
|
||
def tools_seed_trough_1 | ||
@tools_seed_trough_1 ||= | ||
add_tool(ToolNames::SEED_TROUGH_1) | ||
end | ||
|
||
def tools_seed_trough_2 | ||
@tools_seed_trough_2 ||= | ||
add_tool(ToolNames::SEED_TROUGH_2) | ||
end | ||
|
||
def sequences_mow_all_weeds | ||
success = install_sequence_version_by_name(PublicSequenceNames::MOW_ALL_WEEDS) | ||
if !success | ||
s = SequenceSeeds::MOW_ALL_WEEDS.deep_dup | ||
Sequences::Create.run!(s, device: device) | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
module Devices | ||
module Seeders | ||
class GenesisXlOneSeven < AbstractGenesis | ||
def settings_firmware | ||
device | ||
.fbos_config | ||
.update!(firmware_hardware: FbosConfig::FARMDUINO_K17) | ||
end | ||
|
||
def settings_change_firmware_config_defaults | ||
end | ||
|
||
def settings_device_name | ||
device.update!(name: Names::GENESIS_XL) | ||
end | ||
|
||
def settings_default_map_size_x | ||
device.web_app_config.update!(map_size_x: 5_900) | ||
end | ||
|
||
def settings_default_map_size_y | ||
device.web_app_config.update!(map_size_y: 2_900) | ||
end | ||
|
||
def peripherals_rotary_tool | ||
add_peripheral(2, ToolNames::ROTARY_TOOL) | ||
end | ||
|
||
def peripherals_rotary_tool_reverse | ||
add_peripheral(3, ToolNames::ROTARY_TOOL_REVERSE) | ||
end | ||
|
||
def tool_slots_slot_7 | ||
add_tool_slot(name: ToolNames::ROTARY_TOOL, | ||
x: 50, | ||
y: 800, | ||
z: -200, | ||
tool: tools_rotary) | ||
end | ||
|
||
def tool_slots_slot_8 | ||
add_tool_slot(name: ToolNames::SEED_TROUGH_1, | ||
x: 0, | ||
y: 25, | ||
z: -100, | ||
tool: tools_seed_trough_1, | ||
pullout_direction: ToolSlot::NONE, | ||
gantry_mounted: true) | ||
end | ||
|
||
def tool_slots_slot_9 | ||
add_tool_slot(name: ToolNames::SEED_TROUGH_2, | ||
x: 0, | ||
y: 50, | ||
z: -100, | ||
tool: tools_seed_trough_2, | ||
pullout_direction: ToolSlot::NONE, | ||
gantry_mounted: true) | ||
end | ||
|
||
def tools_rotary | ||
@tools_rotary ||= | ||
add_tool(ToolNames::ROTARY_TOOL) | ||
end | ||
|
||
def tools_seed_trough_1 | ||
@tools_seed_trough_1 ||= | ||
add_tool(ToolNames::SEED_TROUGH_1) | ||
end | ||
|
||
def tools_seed_trough_2 | ||
@tools_seed_trough_2 ||= | ||
add_tool(ToolNames::SEED_TROUGH_2) | ||
end | ||
|
||
def sequences_mow_all_weeds | ||
success = install_sequence_version_by_name(PublicSequenceNames::MOW_ALL_WEEDS) | ||
if !success | ||
s = SequenceSeeds::MOW_ALL_WEEDS.deep_dup | ||
Sequences::Create.run!(s, device: device) | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.