Public
Edited
Apr 5, 2023
Insert cell
Insert cell
toolpath1 = [
"M3, 0, 0, 0",
`M3, ${thrishasValue}, 0, 0`,
`M3, 0, ${toolpathWidth}, 0`,
"M3, 0, 10, 0",
"M3, 0, 0, 0"
]
Insert cell
toolpath3 = [
`M3, 0, 0, ${depth}`,
`M3, ${thrishasValue}, 0, ${depth}`,
`M3, 0, ${toolpathWidth}, ${depth}`,
`M3, 0, 10, ${depth}`,
`M3, 0, 0, ${depth}`
]
Insert cell
xyVals = [
[0, 0],
[6, 0],
[0, 4],
[0, 10],
[0, 0]
]
Insert cell
depth = [0, 0.25, 0.5, 1.5]
Insert cell
thrishaArray = depth
.map((d, index) => {
return xyVals.map((xyPair) => {
return [xyPair[0], xyPair[1], d];
});
})
.flat()
Insert cell
hello = thrishaArray.map(
(triple) => `M3,${triple[0]}, ${triple[1]}, ${triple[2]}`
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
thrishasValue.value
Insert cell
Insert cell
Insert cell
instructionsToSend = hello
Insert cell
testInstructions = ["M3,5,0,,"]
Insert cell
Inputs.button("Dispatch SBP code", {
reduce: (_) => {
sendSbpCodesToMachine(testInstructions);
}
})
Insert cell
shelfThickness = 0.5
Insert cell
shopbotBedDims = ({
width: workPieceDim,
height: workPieceDim
})
Insert cell
import { VisualizationSpace, populateVizSpace } from "@machine-agency/minishelf"
Insert cell
import { sendSbpCodesToMachine } from "@machine-agency/quickdraw-sketch-based-milling"
Insert cell
VisualizationSpace
Insert cell
Insert cell

1. Review notebook how dispatching works- naviagate to machineAgency: collection -> imprimer -> connection
2. continue improve this notebook to cut a more interesting object,

Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more