Skip to content

Commit

Permalink
fix: set correct default "get distance" pins for nano robots
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoesbergen committed Oct 11, 2024
1 parent a07b2f3 commit de59559
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/lib/domain/blockly/toolbox.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import robotGroups from "$domain/robots.groups";
import { RobotType } from "$domain/robots.types";
import { format } from "date-fns";
import robotsGroups from "$domain/robots.groups";

function number(value: number) {
return {
Expand Down Expand Up @@ -57,6 +58,15 @@ export default [
{
type: "leaphy_sonar_read",
fields: { TRIG_PIN: "8", ECHO_PIN: "7" },
robots: [
...robotsGroups.ALL,
...robotsGroups.L_NANO_ALL.map((e) => -e),
],
},
{
type: "leaphy_sonar_read",
fields: { TRIG_PIN: "17", ECHO_PIN: "16" },
robots: robotsGroups.L_NANO_ALL,
},
],
[
Expand Down

0 comments on commit de59559

Please sign in to comment.