Skip to content

Commit aefef4a

Browse files
authored
chore: perfect starling env (#175)
* chore: remove motor blocks from starling env, move starling to center on landing page * chore: run biome * fix: also remove servo motor from original env
1 parent d19b030 commit aefef4a

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed

src/lib/domain/blockly/toolbox.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,27 +185,41 @@ export default [
185185
},
186186
},
187187
{
188+
robots: [
189+
...robotGroups.ALL,
190+
...robotGroups.L_STARLING_ALL.map((e) => -e),
191+
],
188192
type: "leaphy_original_set_motor",
189193
inputs: {
190194
MOTOR_SPEED: number(100),
191195
},
192196
},
193197
{
198+
robots: [
199+
...robotGroups.ALL,
200+
...robotGroups.L_STARLING_ALL.map((e) => -e),
201+
],
194202
type: "leaphy_original_move_motors",
195203
inputs: {
196204
MOTOR_SPEED: number(100),
197205
},
198206
},
199207
{
200208
type: "leaphy_original_servo_set",
201-
robots: robotGroups.L_NANO_ALL,
209+
robots: [
210+
...robotGroups.L_NANO_ALL,
211+
...robotGroups.L_ORIGINAL_NANO_ALL.map((e) => -e),
212+
],
202213
inputs: {
203214
SPEED: number(100),
204215
},
205216
},
206217
{
207218
type: "leaphy_original_servo_move",
208-
robots: robotGroups.L_NANO_ALL,
219+
robots: [
220+
...robotGroups.L_NANO_ALL,
221+
...robotGroups.L_ORIGINAL_NANO_ALL.map((e) => -e),
222+
],
209223
inputs: {
210224
SPEED: number(100),
211225
},

src/lib/domain/robots.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,6 @@ export const robotListing: Robot[][] = [
270270
icon: flitzIcon,
271271
variants: [[robots.l_flitz_uno, robots.l_flitz_nano]],
272272
},
273-
{
274-
id: "l_original_select",
275-
name: "Leaphy Original",
276-
icon: originalIcon,
277-
variants: [
278-
[robots.l_original_uno, robots.l_original_nano],
279-
[robots.l_original_nano_esp32, robots.l_original_nano_rp2040],
280-
],
281-
},
282273
{
283274
id: "l_starling_select",
284275
name: "Leaphy Starling",
@@ -288,6 +279,15 @@ export const robotListing: Robot[][] = [
288279
[robots.l_starling_nano_esp32, robots.l_starling_nano_rp2040],
289280
],
290281
},
282+
{
283+
id: "l_original_select",
284+
name: "Leaphy Original",
285+
icon: originalIcon,
286+
variants: [
287+
[robots.l_original_uno, robots.l_original_nano],
288+
[robots.l_original_nano_esp32, robots.l_original_nano_rp2040],
289+
],
290+
},
291291
],
292292
[
293293
{

0 commit comments

Comments
 (0)