Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
feat: use nano-specific motor blocks for nano-based robots (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoesbergen authored Oct 28, 2023
1 parent 351ddbd commit e815960
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@angular/platform-browser-dynamic": "~15.2.9",
"@angular/router": "~15.2.9",
"@fortawesome/fontawesome-free": "^6.1.1",
"@leaphy-robotics/leaphy-blocks": "1.3.7",
"@leaphy-robotics/leaphy-blocks": "^1.4.0",
"@ngx-translate/core": "^14.0.0",
"@ngx-translate/http-loader": "^7.0.0",
"@serialport/parser-readline": "^10.3.0",
Expand Down
24 changes: 22 additions & 2 deletions src/assets/blockly/leaphy-toolbox.xml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,26 @@
</shadow>
</value>
</block>
<sep gap="8"></sep>
<block type="leaphy_nano_set_motor">
<value name="MOTOR_SPEED">
<shadow type="math_number">
<field name="NUM">
100
</field>
</shadow>
</value>
</block>
<sep gap="8"></sep>
<block type="leaphy_nano_move_motors">
<value name="MOTOR_SPEED">
<shadow type="math_number">
<field name="NUM">
100
</field>
</shadow>
</value>
</block>
</category>
<category id="l_click" toolboxitemid="l_click" name="%{BKY_LEAPHY_CLICK_CATEGORY}" categorystyle="leaphy_category">
<block type="leaphy_io_digitalwrite">
Expand Down Expand Up @@ -739,7 +759,7 @@
</value>
</block>
<sep gap="8"></sep>
<block type="leaphy_original_set_motor">
<block type="leaphy_nano_set_motor">
<value name="MOTOR_SPEED">
<shadow type="math_number">
<field name="NUM">
Expand All @@ -749,7 +769,7 @@
</value>
</block>
<sep gap="8"></sep>
<block type="leaphy_original_move_motors">
<block type="leaphy_nano_move_motors">
<value name="MOTOR_SPEED">
<shadow type="math_number">
<field name="NUM">
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1737,10 +1737,10 @@
"@jridgewell/resolve-uri" "3.1.0"
"@jridgewell/sourcemap-codec" "1.4.14"

"@leaphy-robotics/leaphy-blocks@1.3.7":
version "1.3.7"
resolved "https://registry.yarnpkg.com/@leaphy-robotics/leaphy-blocks/-/leaphy-blocks-1.3.7.tgz#b61bb0d30b3d3b588a693f9265c8361ff7591646"
integrity sha512-OG1+wuyGEC3c+8HmL6iJowvEhc7fqa6uAVbB/QNXKaUw/1f6tngQdVjWOmmPK/4FIe7JtM0mtpmbrqmb8egjzQ==
"@leaphy-robotics/leaphy-blocks@^1.4.0":
version "1.4.0"
resolved "https://registry.yarnpkg.com/@leaphy-robotics/leaphy-blocks/-/leaphy-blocks-1.4.0.tgz#b7bc88548e8b6a82dcc995ebf91d71f986f9d469"
integrity sha512-Cf6ftyRfncvwfeEEUm5E5gbu8JFSFudopYO7xc7n+ErPeeGu+ZWebZ+D6xk4jie147E8RuoTKU3NyATSBNjnZQ==
dependencies:
blockly "^10.1.3"
typescript "4.3.2"
Expand Down

0 comments on commit e815960

Please sign in to comment.